
function Q2ExternalLink(){
	if(confirm("By clicking this link, you are now leaving the First Financial Credit Union website. Links to other websites found on the First Financial Credit Union site are intended to provide assistance in locating information. First Financial Credit Union does not endorse, guarantee, or attest to the accuracy of any information provided by these other sites. The credit union is not responsible for the content of these other sites and these sites are in no way operated by First Financial Credit Union. The privacy and security policies of these linked sites may vary from those of the credit union; therefore, it is advised that you review the privacy information of each site visited. ")){
		return true;
	} else {
		return false;
	}
}

function Q2ExternalLinkInsurance(){
	if(confirm("By clicking this link, you are now leaving the First Financial Credit Union website. Links to other websites found on the First Financial Credit Union site are intended to provide assistance in locating information. The credit union is not responsible for the content of these other sites and these sites are in no way operated by First Financial Credit Union. The privacy and security policies of these linked sites may vary from those of the credit union; therefore, it is advised that you review the privacy information of each site visited.")){
		return true;
	} else {
		return false;
	}
}


function Q2ExternalLinkOld(){
	if(confirm("You are leaving First Financial Federal Credit Union's website. Links that may be accessed via this site are for the convenience of informational purposes only. Any products and services accessed through this link are not provided or guaranteed by First Financial Federal Credit Union. The site you are about to visit may have a privacy policy that is different than First Financial Federal Credit Union's. Please review their privacy policy. First Financial Federal Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.")){
		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 CheckBoxCheck(type){
	if(type == 0){
		if(document.Q2OnlineLogin.forgot_password[0].checked){
			document.Q2OnlineLogin.forgot_password[1].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	} else if(type == 1){
		if(document.Q2OnlineLogin.forgot_password[1].checked){
			document.Q2OnlineLogin.forgot_password[0].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	}
}

function roll_over(img_name, img_src)
   {
  var imgID=document.getElementById(img_name);
  imgID.src = "../Bank/images/" + img_src;
   }

  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 MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  }
  function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
      var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  }
  
  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_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
     if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  }
  
  function ChangeClass(ID, Class){
      document.getElementById(ID).className=Class;
  }
  
  function Q2ExternalThirdPartyLink(){
      if(confirm("You will now exit our web site. We make no representations nor do we assume any responsibility for the accuracy of information on other web sites which you visit. \nBy clicking on \"I agree\" you will continue to exit our site. By clicking on \"I disagree\", you will return to our site. ")){
          return true;
      } else {
          return false;
      }
  }

function CheckBoxCheck(type){
	if(type == 0){
		if(document.Q2OnlineLogin.forgot_password[0].checked){
			document.Q2OnlineLogin.forgot_password[1].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
			document.Q2OnlineLogin.password.style.backgroundColor = "#E5E5E5";
		} else {
			document.Q2OnlineLogin.password.disabled = false;
			document.Q2OnlineLogin.password.style.backgroundColor = "#FFFFFF";
		}
	} else if(type == 1){
		if(document.Q2OnlineLogin.forgot_password[1].checked){
			document.Q2OnlineLogin.forgot_password[0].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
			document.Q2OnlineLogin.password.style.backgroundColor = "#E5E5E5";
		} else {
			document.Q2OnlineLogin.password.disabled = false;
			document.Q2OnlineLogin.password.style.backgroundColor = "#FFFFFF";
		}
	}
}
function printbtn(){if (gup('v') !="" ){ window.open('default.aspx?v=' + gup('v') + '&t=blank','win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=no,width=780,height=640,directories=no,location=no')

	}}





function gup( name ){  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  var regexS = "[\\?&]"+name+"=([^&#]*)";  var regex = new RegExp( regexS );  var results = regex.exec( window.location.href );  if( results == null )    return "";  else    return results[1];}


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; }
}
