// -- Scripts -- ************************************

function link_alert(NewPage)
{
	input_box=confirm("The web site you have selected is an external site not operated by Billings Federal Credit Union. This link is provided for convenience and informational purposes only. Billings Federal Credit Union has no responsibility for the content of this web site and does not attest to the accuracy or propriety of any information located there.");
	if (input_box==true)
	{ 
		// Output when OK is clicked
  		window.open(NewPage);
	}
}		


function secure() {
	var full_url = "/secure.html";
	window.open(full_url,"secureWin",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=480');
}

function popUp(url) {
	window.open(url,"popWin",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=610,height=600');
}

function kjeCalc(url) {
	window.open(url,"calcWin",'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=600');
}




// -- ROLLOVERS -- **********************************

var load = 0;
// sign up button
signup_on = new Image(); 
signup_on.src = "/images/home/online_signup_btn_on.gif";
signup_off = new Image(); 
signup_off.src = "/images/home/online_signup_btn_off.gif";

on = new Image(); 
on.src = "/images/btn_on.gif";
off = new Image(); 
off.src = "/images/btn_off.gif";

load = 1;

function roll(x){		
 		if (load == 1) {   
 	 document.images[x].src=eval(x + '_on.src')
            }
}

function hide(x){		
        if (load == 1) {
     document.images[x].src=eval(x + '_off.src')
            }
}

function bulleton(x){              
	if (load == 1) {   
	document.images['roll' + x].src=eval('on.src')	}
}

function bulletoff(x){               
	if (load == 1) {
	document.images['roll' + x].src=eval('off.src') }
}



function clear(){
	document.signon.userid.focus();
	document.signon.userid.value = ""
	document.signon.imageword.value = ""
	
}


/// PRINT FUNCTION

function printit() {

	input_box=confirm("Are you ready to print your application?");
	if (input_box==true)
	{ 
		window.print();
		window.close();
	} else {
		window.close();
	}
}
