


function clear_input(object, text)
{
	 if (object.value == text)
			object.value = "";
}

function fill_input(object,text)
{
	 if (object.value == "")
		 object.value = text;
}

function updateLinks(prefix) {
    $('#resources-submenu li a').each(function(index) {
        var oldTitle = new String($(this).text());
        var pos = -1;
        pos = oldTitle.indexOf(prefix)
        if (pos != -1) {
            $(this).text(oldTitle.substr(pos + prefix.length));
        }
    });
    $('#footer-list3 li a').each(function(index) {
        var oldTitle = new String($(this).text());
        var pos = -1;
        pos = oldTitle.indexOf(prefix)
        if (pos != -1) {
            $(this).text(oldTitle.substr(pos + prefix.length));
        }
    });

}


