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 Q2ExternalLink(){
	if(confirm("You are leaving the Bank's web site.\n\nThe web site you have selected is an external one located on another server. The Bank has no responsibility for any external Web site. It neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.")){
		return true;
	} else {
		return false;
	}
}

function Q2mail(){
	if(confirm("Information provided through this email link is transmitted over an unsecured connection. Please do not send information such as account numbers, account service requests or other personal information. Please contact us in person, by telephone or by mail with confidential information.")){
		return true;
	} else {
		return false;
	}
}


function ExternalLink(){
	if(confirm("You are leaving the Bank's web site.\n\nThe web site you have selected is an external one located on another server. The Bank has no responsibility for any external Web site. It neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.")){
		return true;
	} else {
		return false;
	}
}

//This is code added by a GRP Metavante Bill Payment Demo Implementation Request when removing that demo remove this as well.
			function openBPDemo() { //v2.0
			
				window.open("https://www.wyoming-bank.com/bridge/GRP/metavante_flash_demo/index.html","mvdemo","resizable=yes,scrollbars=no,menubar=no,status=no,width=775,height=535,left=0,top=0");	
			}


function CheckBoxCheck(type){
	 if(type == 1){
		if(document.Q2OnlineLogin.forgot_password.checked){
			document.Q2OnlineLogin.password.disabled = true;
			document.Q2OnlineLogin.password.style.backgroundColor = "#E5E5E5";
		} else {
			document.Q2OnlineLogin.password.disabled = false;
			document.Q2OnlineLogin.password.style.backgroundColor = "#FFFFFF";
		}
	}
}