<!--
	
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();
  }
}

/* link for investment products */
function investmentAlert(){
if (confirm("Please note that by clicking on this link, you will leave the Bank website.  The Bank does not endorse, approve, certify, or control this external site and does not guarantee the accuracy, completeness, efficacy, timeliness, or accurate sequencing of the information contained on it.")){
	location.href('http://www.urlhere.com/');
	}
}

/* third part disclaimer */
function disclaimerAlert(whichBank, strURL){
if (whichBank == "1") {
	bankName = "Atlantic Bank";
} else if (whichBank == "2"){
	bankName = "New York Commercial Bank";
} else {
	bankName = "New York Commercial Bank";
}
if (confirm("You are now leaving the " + bankName +  " website and you are entering a site managed by a third-party.")){
	window.open(strURL);
	}
}
// -->
