function Q2ExternalLink(){
	if(confirm("Please be advised that you are about to enter a website that is not operated by Quorum FCU. The Credit Union is not responsible for the content of the website. The Privacy and Security policies of this party may differ from those of the Credit Union. We encourage you to review all appropriate policies before submitting information or engaging in transactions at this 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 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;
		}
	}
}


var popUpstate = 0;
function fadein(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#light").height();
	var popupWidth = $("#light").width();
	//centering
	$("#light").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fade").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("light")
	var fade2 = document.getElementById("fade")
	$("#fade").css({
			"opacity": "0.8"
		});
	
	$("#light").fadeIn('slow');
	$("#fade").fadeIn('fast');
	popUpstate = 1;
}
function fadeout(){
	//window.alert('hi')
	var fade1 = document.getElementById("light")
	var fade2 = document.getElementById("fade")
	$("#light").fadeOut('fast');
	$("#fade").fadeOut('slow');
	popUpstate = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup").click(function(){
		fadeout();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate==1){
			fadeout();
		}
	});

});
$(function() {
	$("#tabs").tabs();
});







function getLocations() {



	var valid = "0123456789-";



	var hyphencount = 0;



	var proceed = true;



	var field = document.frmMoreSearch.zip2.value;







	if(field.length > 0){



		for (var i=0; i < field.length; i++) {



			temp = "" + field.substring(i, i+1);



			if (temp == "-") hyphencount++;







			if (valid.indexOf(temp) == "-1") {



				alert("Invalid characters in your zip code.  Please try again.");



				proceed =  false;



				break;



			}







			if ((hyphencount > 1) || ((field.length==10) && ""+field.charAt(5)!="-")) {



				alert("The hyphen character should be used with a properly formatted 5 digit+four zip code, like '12345-6789'.   Please try again.");



				proceed =  false;



				break;



			}



		}







	} else {



		alert("Please enter a valid zip code.");



		proceed =  false;



	}







	if(proceed){



		//var openwindow_value="http://servicefinder.quorumfcu.org/SearchResult.aspx?zip="+document.frmMoreSearch.zip2.value+"&searchType=zip";



		//window.open(openwindow_value,'popUpWin');



		//window.document.frmMoreSearch.action="http://servicefinder.quorumfcu.org/SearchResult.aspx?zip="+document.frmMoreSearch.zip.value+"&searchType=zip";



			window.open("http://servicefinder.quorumfcu.org/SearchResult.aspx?zip="+document.frmMoreSearch.zip2.value+"&searchType=zip","winPop","width=750,height=675,status=no,scrollbars=yes,resizable=yes,location=0,menubar=0,toolbar=no");



		window.document.frmMoreSearch.sumbit();



		return false;



	}



}









function printbtn(){if (gup('v') !="" ){ window.open('default.aspx?v=' + gup('v') + '&t=print','win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=no,width=640,height=480,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 TodaysDate(){

myDays=

["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]

Today = new Date();

TodayDay = Today.getDate();

TodayMon = Today.getMonth();

TodayYear = Today.getYear();

theday= myDays[Today.getDay()]

thetime= Today.getTime()



if (TodayYear < 2000) {TodayYear += 1900;}



if (TodayMon == 0) { TodayMonth = "January"; }

else if (TodayMon == 1) { TodayMonth = "February"; }

else if (TodayMon == 2) { TodayMonth = "March"; }

else if (TodayMon == 3) { TodayMonth = "April"; }

else if (TodayMon == 4) { TodayMonth = "May"; }

else if (TodayMon == 5) { TodayMonth = "June"; }

else if (TodayMon == 6) { TodayMonth = "July"; }

else if (TodayMon == 7) { TodayMonth = "August"; }

else if (TodayMon == 8) { TodayMonth = "September"; }

else if (TodayMon == 9) { TodayMonth = "October"; }

else if (TodayMon == 10) { TodayMonth = "November"; }

else if (TodayMon == 11) { TodayMonth = "December"; }

else { TodayMonth = TodayMon; }




TodayYear = Today.getFullYear();


document.write(theday + ", " + TodayMonth + " " + TodayDay + ", " + TodayYear );

 

}



var popUpstate = 0;
function fadein(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#light").height();
	var popupWidth = $("#light").width();
	//centering
	$("#light").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fade").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("light")
	var fade2 = document.getElementById("fade")
	$("#fade").css({
			"opacity": "0.8"
		});
	
	$("#light").fadeIn('slow');
	$("#fade").fadeIn('fast');
	popUpstate = 1;
}
function fadeout(){
	//window.alert('hi')
	var fade1 = document.getElementById("light")
	var fade2 = document.getElementById("fade")
	$("#light").fadeOut('fast');
	$("#fade").fadeOut('slow');
	popUpstate = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup").click(function(){
		fadeout();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate==1){
			fadeout();
		}
	});

});
$(function() {
	$("#tabs").tabs();
	$("#tabs2").tabs();
});


var popUpstate2 = 0;
function fadein2(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightsave").height();
	var popupWidth = $("#lightsave").width();
	//centering
	$("#lightsave").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadesave").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightsave")
	var fade2 = document.getElementById("fadesave")
	$("#fadesave").css({
			"opacity": "0.8"
		});
	
	$("#lightsave").fadeIn('slow');
	$("#fadesave").fadeIn('fast');
	popUpstate2 = 1;
}
function fadeout2(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightsave")
	var fade2 = document.getElementById("fadesave")
	$("#lightsave").fadeOut('fast');
	$("#fadesave").fadeOut('slow');
	popUpstate2 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup2").click(function(){
		fadeout2();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate2==1){
			fadeout2();
		}
	});

});


var popUpstate3 = 0;
function fadein3(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightinvest").height();
	var popupWidth = $("#lightinvest").width();
	//centering
	$("#lightinvest").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadeinvest").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightinvest")
	var fade2 = document.getElementById("fadeinvest")
	$("#fadeinvest").css({
			"opacity": "0.8"
		});
	
	$("#lightinvest").fadeIn('slow');
	$("#fadeinvest").fadeIn('fast');
	popUpstate3 = 1;
}
function fadeout3(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightinvest")
	var fade2 = document.getElementById("fadeinvest")
	$("#lightinvest").fadeOut('fast');
	$("#fadeinvest").fadeOut('slow');
	popUpstate3 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup3").click(function(){
		fadeout3();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate3==1){
			fadeout3();
		}
	});

});



var popUpstate4 = 0;
function fadein4(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightmort").height();
	var popupWidth = $("#lightmort").width();
	//centering
	$("#lightmort").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fademort").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightmort")
	var fade2 = document.getElementById("fademort")
	$("#fademort").css({
			"opacity": "0.8"
		});
	
	$("#lightmort").fadeIn('slow');
	$("#fademort").fadeIn('fast');
	popUpstate4 = 1;
}
function fadeout4(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightmort")
	var fade2 = document.getElementById("fademort")
	$("#lightmort").fadeOut('fast');
	$("#fademort").fadeOut('slow');
	popUpstate4 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup4").click(function(){
		fadeout4();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate4==1){
			fadeout4();
		}
	});

});


var popUpstate5 = 0;
function fadein5(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightvehicle").height();
	var popupWidth = $("#lightvehicle").width();
	//centering
	$("#lightvehicle").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadevehicle").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightvehicle")
	var fade2 = document.getElementById("fadevehicle")
	$("#fadevehicle").css({
			"opacity": "0.8"
		});
	
	$("#lightvehicle").fadeIn('slow');
	$("#fadevehicle").fadeIn('fast');
	popUpstate5 = 1;
}
function fadeout5(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightvehicle")
	var fade2 = document.getElementById("fadevehicle")
	$("#lightvehicle").fadeOut('fast');
	$("#fadevehicle").fadeOut('slow');
	popUpstate5 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup5").click(function(){
		fadeout5();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate35==1){
			fadeout5();
		}
	});

});


var popUpstate6 = 0;
function fadein6(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightpers").height();
	var popupWidth = $("#lightpers").width();
	//centering
	$("#lightpers").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadepers").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightpers")
	var fade2 = document.getElementById("fadepers")
	$("#fadepers").css({
			"opacity": "0.8"
		});
	
	$("#lightpers").fadeIn('slow');
	$("#fadepers").fadeIn('fast');
	popUpstate6 = 1;
}
function fadeout6(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightpers")
	var fade2 = document.getElementById("fadepers")
	$("#lightpers").fadeOut('fast');
	$("#fadepers").fadeOut('slow');
	popUpstate6 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup6").click(function(){
		fadeout6();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate6==1){
			fadeout6();
		}
	});

});


var popUpstate7 = 0;
function fadein7(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightcc").height();
	var popupWidth = $("#lightcc").width();
	//centering
	$("#lightcc").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadecc").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightcc")
	var fade2 = document.getElementById("fadecc")
	$("#fadecc").css({
			"opacity": "0.8"
		});
	
	$("#lightcc").fadeIn('slow');
	$("#fadecc").fadeIn('fast');
	popUpstate7 = 1;
}
function fadeout7(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightcc")
	var fade2 = document.getElementById("fadecc")
	$("#lightcc").fadeOut('fast');
	$("#fadecc").fadeOut('slow');
	popUpstate7 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup7").click(function(){
		fadeout7();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate7==1){
			fadeout7();
		}
	});

});


var popUpstate8 = 0;
function fadein8(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#lightconv").height();
	var popupWidth = $("#lightconv").width();
	//centering
	$("#lightconv").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$("#fadeconv").css({
		"height": windowHeight
	});
	
	//window.alert('hi')
	var fade1 = document.getElementById("lightconv")
	var fade2 = document.getElementById("fadeconv")
	$("#fadeconv").css({
			"opacity": "0.8"
		});
	
	$("#lightconv").fadeIn('slow');
	$("#fadeconv").fadeIn('fast');
	popUpstate8 = 1;
}
function fadeout8(){
	//window.alert('hi')
	var fade1 = document.getElementById("lightconv")
	var fade2 = document.getElementById("fadeconv")
	$("#lightconv").fadeOut('fast');
	$("#fadeconv").fadeOut('slow');
	popUpstate8 = 0;
}
$(document).ready(function(){
	//Click the x event!
	$(".close_popup8").click(function(){
		fadeout8();
	});
	
	//Press Escape event!
$(document).keypress(function(e){
		if(e.keyCode==27 && popUpstate8==1){
			fadeout8();
		}
	});

});


function ScrollTo() {
	location.href = '#';
}

function ReadURL() {
var TabName	= /tabs-/;
var string1 = window.location.href;
var TabMatch = string1.search(TabName);
if (TabMatch != -1)
	{
	ScrollTo();
	}
}


function submitpersonalform()
{
  document.retaildemo.submit();
}

function submitcommercialform()
{
  document.commercialdemo.submit();
}
