function startList() {
if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
				//console.log(this.currentStyle.width);
				}
  				node.onmouseout=function() {
  				this.className=this.className.replace(" over", "");
   				}
   			}
  		}
 	}
}

function clearedText(clearField){
	document.getElementById(clearField).value = '';
}

function loginButton() {
	var number = document.getElementById('AccessId').value
	var type = document.getElementById('accountType').value
	
	if(number == '' || number == 'Enter your Access ID'){
		alert('Please enter an account number');
		return;
	}
	
	if(type == ''){
		alert('Please select an account type');
		return;
	}
	
	if(type == '1'){
		document.OnlineBankingForm.action = "https://www.tdcecom.com/PBI_PBI1961/Pbi1961.asp?WCI=Logon&WCE=Submit";
		document.OnlineBankingForm.submit();
	}
	
	if(type == '2'){
		document.OnlineBankingForm.action = "https://www.tdcecorp.com/EBC_EBC1961/EBC1961.ASP?WCI=Process&STU=85914C7086DB40E8817C19A5857857DB&WCE=Passmark&RID=0";
		document.OnlineBankingForm.submit();
	}
	
}

window.onload = function () {
	startList();
}
 
<!--
function outboundLink(selectedURL){
 
		var confirmLeave = confirm("You are now leaving Texas National Bank's website. Texas National Bank does not control nor endorse the content at the external website or its sponsors. The privacy policy of the external site may differ from Texas National Bank's privacy policy. To remain at our site, click cancel. To continue to the external site, click OK. Thank you for visiting our website.");
		
		if (confirmLeave == true)
		{
			 window.open(selectedURL, 'blank', '');
			
		}
		else
		{
			return false;
		}
	
} 

function emailMsg(selectedURL){
 
		var confirmLeave = confirm('Please do not send or request personal information via email. Information transmitted via this email link is not encrypted. Do not send information such as: account numbers, social security numbers, etc..');
		
		if (confirmLeave == true)
		{
			 //window.open(selectedURL);
			 return true;
			
		}
		else
		{
			return false;
		}
	
} 
//-->
 

function confirm_exit(selectedURL) {
	 
var confirmLeave = confirm("You are now leaving Texas National Bank's website.  To protect your personal identity, Deluxe has restricted the ability to make any changes to your personal information through their website.  You should have your check reorder form handy because you will need to provide the next starting check number which is on the check reorder form.  Deluxe will send your order to the address on file.  Therefore, if you need to make any changes to your personal information, you must place your order through a Texas National Bank representative.  Click OK to continue to the Deluxe website or Cancel to remain in our site");
 		if (confirmLeave == true)
		{
			 window.open(selectedURL, 'blank', '');
			
		}
		else
		{
			return false;
		}
	
} 