// Menu roll up & roll down function
function Rolling(thediv, span1, span2)
	{
		if (document.getElementById(thediv).style.display == "none")
		{
			if (span1 != null && span1 != "")
			{
				document.getElementById(span2).style.display = "block";
				document.getElementById(span1).style.display = "none";
			}
			document.getElementById(thediv).style.display = "block";
		}
		else
		{
			if (span1 != null && span1 != "")
			{
				document.getElementById(span1).style.display = "block";
				document.getElementById(span2).style.display = "none";
			}
			document.getElementById(thediv).style.display = "none";
		}
		
		return false;
	}

		function CharCheck(e)   {
			var keynum
			var keychar
			var numcheck

			if(window.event) // IE
			{
			keynum = e.keyCode
			}
			else if(e.which) // Netscape/Firefox/Opera
			{
			keynum = e.which
			}
			keychar = String.fromCharCode(keynum)
			//numcheck = /\d/
			
			var str="<>'/\\\"`"
			if (str.indexOf(keychar) >= 0)  {
				alert("We are sorry but the following characters are not allowed (" + str + ")")
				return false
				}
			else
				return true	
			//onkeypress="return CharCheck(event)"							
		}

		function CharCheck4Copy(x)   {
			var content;
			content = x.value;
						
			var bacChars = new Array();
			bacChars[0] = "<"; 
			bacChars[1] = ">"; 
			bacChars[2] = "'"; 
			bacChars[3] = "/"; 
			bacChars[4] = "\\"; 
			bacChars[5] = "\""; 
			bacChars[6] = "`";

			var str="<>'/\\\"`";
			for (i = 0; i <=6; i++)
			{
				if (content.indexOf(bacChars[i]) >= 0)  {
					alert("We are sorry but the following characters are not allowed (" + str + ")");
					return false;
				}
			}
			return true;
			//onChange="return CharCheck4Copy(this)"							
		}
		
		function CharCheckEmail(e)   {
			var keynum
			var keychar
			var numcheck

			if(window.event) // IE
			{
			keynum = e.keyCode
			}
			else if(e.which) // Netscape/Firefox/Opera
			{
			keynum = e.which
			}
			keychar = String.fromCharCode(keynum)
			//numcheck = /\d/
			
			var str="<>/\\\""
			if (str.indexOf(keychar) >= 0)  {
				alert("We are sorry but the following characters are not allowed (" + str + ")")
				return false
				}
			else
				return true	
			//onkeypress="return CharCheck(event)"							
		}

		function CharCheck4CopyEmail(x)   {
			var content;
			content = x.value;
						
			var bacChars = new Array();
			bacChars[0] = "<"; 
			bacChars[1] = ">"; 
			bacChars[2] = "/"; 
			bacChars[3] = "\\"; 
			bacChars[4] = "\""; 

			var str="<>/\\\"";
			for (i = 0; i <=4; i++)
			{
				if (content.indexOf(bacChars[i]) >= 0)  {
					alert("We are sorry but the following characters are not allowed (" + str + ")");
					return false;
				}
			}
			return true;
			//onChange="return CharCheck4Copy(this)"							
		}