<!--
	//CHANGE SUB-NAV ON ROLLOVER
	function ChangeDiv(id) {
	var currentid = document.Form1.CurrentID.value 
	if (id != currentid) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(currentid).style.visibility = "hidden";
	document.Form1.CurrentID.value = id
	}
	else
	document.getElementById(currentid).style.visibility = "visible"	
}
//-->
<!--
	//LOGIN - VALIDATE LOGIN FORM FIELDS
	function ValEmail() {
	var email = document.Form2.Email.value;
	var emailchar = document.Form2.Email.value.indexOf("@");
	var rulesval = document.Form2.RulesVal.value;
	if ((email == "") || (emailchar == -1)) 
	{
	alert ("Please provide a valid email address.");
	document.Form2.Email.focus();
	return (false);
	}
	if (rulesval == 0)
	{
	alert ("You must read the Official Rules to proceed.");
	document.Form2.Rules.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//LOGIN - VALIDATE LOGIN FORM FIELDS
	function ValLogIn() {
	var username = document.Form3.UserName.value;
	var password = document.Form3.Password.value;
	if (username == "") 
	{
	alert ("Please enter a value for the \"User ID\" field.");
	document.Form3.UserName.focus();
	return (false);
	}
	if (password == "")
	{
	alert("Please enter a value for the \"Password\" field.");
	document.Form3.Password.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION
	function RemPass() {
	var remember = document.Form3.Remember.value;
	var checkval = document.Form3.CheckVal.value;
	if ((remember == 1) && (checkval == 0))
		{
		document.Form3.CheckVal.value = 1;
		}
	else
		{
		document.Form3.CheckVal.value = 0;
	}
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION 2
	function OKRules() {
	var rules = document.Form2.Rules.value;
	var rulesval = document.Form2.RulesVal.value;
	if ((rules == 1) && (rulesval == 0))
		{
		document.Form2.RulesVal.value = 1;
		}
	else
		{
		document.Form2.RulesVal.value = 0;
	}
}
//-->
<!--
	//OPEN POP-UP
	function PopWin(NewLocation, HVal, WVal) {
	window.open(NewLocation, "NewWindow", "left=50,top=50,width=" + HVal 
	+ ",height=" + WVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//GO TO NEW LOCATION IN PARENT WINDOW
	function GoTo(NewLocation) {
	self.opener.location = NewLocation;
	parent.close();	
	}
//-->
<!--
	//DETERMINE WAIVER VAL
	function WaiverOption() {
	var waiveroption = document.Form2.WaiverAccept.value;
	
	if (waiveroption == 0) 
	{
	document.Form2.WaiverAccept.value = 1;
	}
	if (waiveroption == 1)
	{
	document.Form2.WaiverAccept.value = 0;
	}    
}
//-->
<!--
	function CheckForm() {
	var rswaiver = document.Form2.WaiverAccept.value;
	if (rswaiver == 0)
	{
    alert("You must agree to proceed.");
    document.Form2.ckWaiver.focus();
    return (false);
    }	
	//if (confirm("You are now leaving SouthernCommercialBankStl.com. We are not responsible "
		//+ "for the content of the website that you have requested. Do you wish to continue?") == true)
		//{
	return (true);
		//}
	//else
		//{
		//return (false);
	//}
}
//-->
<!--
	//LEAVING SITE ALERT
	function popAlert(confURL) {
	var popconf = confirm("You are now leaving BankOfHillsboro.com. We are not responsible "
		+ "for the content of the website that you have requested. Do you wish to continue?");
		
	if (popconf == true) {
		window.open(confURL);
	}
}
//-->