 /*
	swapit is the rollover function for corporate and investor sites until
	until the images for these are put into Vignette.
	*/

function swapit(who,src) {
	document.images[who].src = "../images/" + src;
}

function swapit2(who,src) {
	document.images[who].src = "images/" + src;
}

	
	/*
	pepe is the window open script where the url, the window width, and the
	window height are set in the window.open link.
	*/

function pepe2(url,h,w) {
newWindow = window.open(url,'EasyTech','toolbar=1 location=0 directories=1 status=0 menubar=1 scrollbars=1 resizable=1 height='+h+' width='+w+' left=20 top=20');
}

function pepe(url,h,w) {
newWindow = window.open(url,'EasyTech','toolbar=0 location=0 directories=0 status=0 menubar=0 scrollbars=1 resizable=1 height='+h+' width='+w+' left=20 top=20');
}

	/*
	this is the submission control thing on the user end...it
	allows an input form to be submitted -only- once. If
	multiple attempts are made to submit a form, it does
	nothing, but instead continues to send only the first
	request...subsequent submissions are ignored.
	*/



var requestSubmitted = false;
function subOnce() {
	if(requestSubmitted == true) {
		return;
	}	
	requestSubmitted = true;
document.forms[0].submit();
}


/* controls the focus on the main page.  We don't want to steal focus
from the password box if the user has already entered a username and the
page load is slow.
*/

function doFocus() {
	if (document.login_form.username.value == "") {
		document.login_form.username.focus();
	}
}



