<!--
if (document.images) {

	colleyvilleOff = new Image();	
	colleyvilleOff.src = "images/photo_colleyville.jpg";	

	colleyvilleOn = new Image();	
	colleyvilleOn.src = "images/photo_colleyville_over.jpg";	
	
	coppellOff = new Image();	
	coppellOff.src = "images/photo_coppell.jpg";	

	coppellOn = new Image();	
	coppellOn.src = "images/photo_coppell_over.jpg";	
	
	highlandOff = new Image();
	highlandOff.src = "images/photo_highland.jpg";
	
	highlandOn = new Image();
	highlandOn.src = "images/photo_highland_over.jpg";
}	
	
function chgImg(imgField,newImg) {
	
	if (document.images) {
		document[imgField].src=eval(newImg + ".src")
	}
}

/* pop up window -- used for calculators */
function popWindow(displaypage,xwidth,ywidth,xloc,yloc,scroll,resize,toolbar) {

var winPar

if (xwidth) {

winPar = winPar + ',width='+xwidth
}

if (ywidth) {
winPar = winPar + ',height='+ywidth
}

if (xloc) {
winPar = winPar + ',screenX='+xloc+',left='+xloc
}

if (yloc) {
winPar = winPar + ',screenY='+yloc+',top='+yloc
}

if (scroll) {
winPar = winPar + ',scrollbars='+scroll
}

if (resize) {
winPar = winPar + ',resizable='+resize
}

if (toolbar) {
winPar = winPar + ',toolbar='+toolbar
}

if (winPar) {
	window.open(displaypage,'window1',winPar);
	}
	else {
	window.open(displaypage,'window1');
	}
	
}

/* online banking login */
function submitform()
{
	document.loginForm.submit();
	 
}

/* online banking clear fields */
function resetform()
{
	document.loginForm.reset();
	 
}

/* online banking forgot password */
function forgotpswd() {
  if (document.loginForm.UserID.value.length == 0) {
	alert("Please enter your User ID");
	document.loginForm.UserID.focus();
  }
  else {
    document.loginForm.Action.value = "Forgot Password";
    document.loginForm.submit();
  }
}

//alert for external links
function disclaimerAlert(strURL){
	if (confirm("Attention: You are leaving the Eastern Federal bank web site.\n\nThe links to third party web sites are provided solely as a matter of convenience to the visitors of the Eastern Federal Bank (''Bank'') web site.\n\nWhen you use a hyperlink to visit the web site of another person or entity, you leave the Bank's web site. Your use of hyperlinks to the web sites of others is at your own risk.\n\nThe content, accuracy, and opinions expressed and other links provided by these resources are not investigated, verified, monitored or endorsed by the Bank.\n\nThe Bank has no responsibility for products and services offered through another entity's web site.\n\nThe Bank makes no warranties as to the operation or usefulness of other web sites.\n\nOther web site operators may collect information about you and use such information in accordance with their policies and procedures. If you have any questions about another entity's use of personal information, you should review that entity's privacy policies and/or ask that entity directly. We are not responsible for another entity's use of your information.\n\nClick the OK button to leave the Eastern Federal Bank's web site. Click the Cancel button to remain on this page.")){
	window.open(strURL);
	}
}
// -->