function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function leavingSite() {
window.alert("Usted esta visitando un sitio Web fuera de HSA Bank.  HSA Bank no es responsable por el sitio Web que usted va a visitar.");
}

function qdSite() {
window.alert("HSA Bank will be releasing its Group Online Contribution system on December 28, 2006. The Group Online Contribution system will be replacing the Quick Disbursements system you are currently using. Any transfer scheduled to post on or after December 29, 2006 through Quick Disbursements will NOT be processed.  If you have any questions, please contact HSA Bank's Business Relations Coordinators at 1-866-357-5232, Monday through Friday, 7 a.m. to 7 p.m., CST.");
}


function ViewFlash(x) {
	window.open(x, "null", "channelmode=yes, directories=yes, fullscreen=yes");
}



function ViewIbankingDemo() {
	window.open("../downloads/flash/ibanking/ibanking_demo.htm", "null", "height=500, width=750, top=5, left=5, toolbar=no, menubar=no");
}



function NewWindow(x, y, z) {
	window.open(x, "null", "width=" + y + ", height=" + z + ", left=5, top=5, toolbar=no, menubar=no, scrollbars=yes");
}



function ViewEnrollmentDemo() {
	window.open("../downloads/flash/enrollment/enrollment_demo.htm", "null", "height=500, width=750, top=5, left=5, toolbar=no, menubar=no");
}




function jumpMenu(x) {
	selectedItem = x.QuickLogin.selectedIndex;
	newurl = x.QuickLogin.options[selectedItem].value;
	if (newurl == "http://www.ameritraderetirement.com") {
		window.alert("Usted esta visitando un sitio Web fuera de HSA Bank.  HSA Bank no es responsable por el sitio Web que usted va a visitar.");
		window.open(newurl);
	} else if (newurl=="https://secure.hsabank.com/ibanking") {
			if (window.confirm("La informacion no esta disponible en espanol, presione el boton para verla en ingles")){
				window.open(newurl);
				}
		
	}else {
		window.open(newurl);
	}
	
}


