	function toggleBox(szDivID) 
	{
		if (document.layers) 
		{ // NN4+
			if (document.layers[szDivID].visibility == 'visible') 
			{
		  		document.layers[szDivID].visibility = "hide";
				document.layers[szDivID].display = "none";
				//document.layers[szDivID+"SD"].fontWeight = "normal";
			} 
			else 
			{
				document.layers[szDivID].visibility = "show";
				document.layers[szDivID].display = "inline";
				//document.layers[szDivID+"SD"].fontWeight = "bold";
			}
		} 
		else if (document.getElementById) 
		{ // gecko(NN6) + IE 5+
			var obj = document.getElementById(szDivID);
			var objSD = document.getElementById(szDivID+"SD");
	
			if (obj.style.visibility == 'visible') 
			{
				obj.style.visibility = "hidden";
				obj.style.display = "none";
				//objSD.style.fontWeight = "normal";
			} 
			else 
			{
				obj.style.visibility = "visible";
				obj.style.display = "inline";
				//objSD.style.fontWeight = "bold";
			}
	  	} 
	  	else if (document.all) 
		{ // IE 4
			if (document.all[szDivID].style.visibility == 'visible') 
			{
				document.all[szDivID].style.visibility = "hidden";
				document.all[szDivID].style.display = "none";
				//document.all[szDivID+"SD"].style.fontWeight = "normal";
			} 
			else 
			{
				document.all[szDivID].style.visibility = "visible";
				document.all[szDivID].style.display = "inline";
				//document.all[szDivID+"SD"].style.fontWeight = "bold";
			}
	  	}
	}
	//Function to open pop up window
	function openWin(theURL,winName,features) {
  		window.open(theURL,winName,features);
	}
	
	function SiteJump(URL) 
	{
		if (URL.options[URL.selectedIndex].value != "NoGood") self.location.href = URL.options[URL.selectedIndex].value;	
		return true;
	}
	function SiteJump2(URL) 
	{
		self.location.href = URL;	
		return true;
	}
	function SiteJumpDelete(URL) 
	{
		var Response

		Response = confirm("Are you sure");
		
		if (Response == true)
		{
			if (URL.options[URL.selectedIndex].value != "NoGood") self.location.href = URL.options[URL.selectedIndex].value;	
			return true;
		}
		else
		{
			location.reload()
		}
	}

	function isBlank(val)
	{
		if(val==null){return true;}
		for(var i=0;i<val.length;i++) {
			if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
		}
		return true;
	}
		
	function isInteger(val)
	{
		if (isBlank(val)){return false;}
		for(var i=0;i<val.length;i++){
			if(!isDigit(val.charAt(i))){return false;}
		}
		return true;
	}
	function isDecimal(val)	
	{
		var DecimalFound;
		DecimalFound = false;
		
		if (isBlank(val)){val = 0;}
		for(var i=0;i<val.length;i++){
			if(!isDigit(val.charAt(i)))
			{
				if (DecimalFound == false)
				{
					if (!isDecimalPoint(val.charAt(i)))
					{
						return false;
					}
					else
					{
						DecimalFound = true;
					}
				}
				else
				{
					return false;
				}
			}
		}
		return true;
	}
	function isDigit(num) 
	{
		if (num.length>1){return false;}
		var string="1234567890";
		if (string.indexOf(num)!=-1){return true;}
		return false;
	}
	function isDecimalPoint(num) 
	{
		if (num.length>1){return false;}
		var string=".";
		if (string.indexOf(num)!=-1){return true;}
		return false;
	}
	function display_error(msg)
	{
		alert_msg ="_______________________________________________________________\n";
		alert_msg += "The form has not been submitted because there are problem(s) with the form.\n";
		alert_msg += "Please correct the problem(s) and re-submit the form.\n";
		alert_msg +="_______________________________________________________________\n\n";
		alert_msg += "The following field(s) need to be corrected:-\n";
		
		msg += alert(alert_msg + msg + "\n\n");
	}