<!--

function menuHover(el, cls)
{
	el.className = cls;

}

function goUrl(strUrl)
{
	location.href = strUrl;
}


	function RemoveUnsafeCharacters (strIn)
	{
		var strOut = strIn;
		
		strOut = replaceAll(strOut, " ", "_");
		strOut = replaceAll(strOut, "-", "_");
		strOut = replaceAll(strOut, "~", "");
		strOut = replaceAll(strOut, "`", "");
		strOut = replaceAll(strOut, "!", "");
		strOut = replaceAll(strOut, "@", "");
		strOut = replaceAll(strOut, "#", "");
		strOut = replaceAll(strOut, "$", "");
		strOut = replaceAll(strOut, "%", "");
		strOut = replaceAll(strOut, "^", "");
		strOut = replaceAll(strOut, "&", "");
		strOut = replaceAll(strOut, "*", "");
		strOut = replaceAll(strOut, "(", "");
		strOut = replaceAll(strOut, ")", "");
		strOut = replaceAll(strOut, "+", "");
		strOut = replaceAll(strOut, "=", "");
		strOut = replaceAll(strOut, "{", "");
		strOut = replaceAll(strOut, "[", "");
		strOut = replaceAll(strOut, "}", "");
		strOut = replaceAll(strOut, "]", "");
		strOut = replaceAll(strOut, "|", "");
		strOut = replaceAll(strOut, "\\", "");
		strOut = replaceAll(strOut, ":", "");
		strOut = replaceAll(strOut, ";", "");
		strOut = replaceAll(strOut, "\"", "");
		strOut = replaceAll(strOut, "'", "");
		strOut = replaceAll(strOut, "<", "");
		strOut = replaceAll(strOut, ",", "");
		strOut = replaceAll(strOut, ">", "");
		strOut = replaceAll(strOut, ".", "");
		strOut = replaceAll(strOut, "?", "");
		strOut = replaceAll(strOut, "/", "");

		return strOut;
	}


	function replaceAll(str, substr, rep ) 
	{
		var idx = str.indexOf(substr);
		while ( idx > -1 ) 
		{
			str = str.replace(substr, rep); 
			idx = str.indexOf(substr);
		}

		return str;
	}
	
	function onmouseover_activebutton(obj)
	{	
		obj.className = "activebutton_hover";
	}
	function onmouseout_activebutton(obj)
	{	
		obj.className = "activebutton";
	}
	
	function checkTALimit() {
		var taObj = event.srcElement;
		if (taObj.value.length == taObj.maxLength*1) return false;
	}

	function checkTACount(divCounter) { 
		var taObj = event.srcElement;
		if (taObj.value.length>taObj.maxLength*1) taObj.value = taObj.value.substring(0,taObj.maxLength * 1);
		if (divCounter) 
		{
			var vCount = taObj.maxLength - taObj.value.length;
			divCounter.innerHTML = "<b>" + vCount + "</b> characters left.";
		}
	}

//-->