/* begin old functions */
	function opensite(url) {
		newwin = window.open(url, 'siteWin', 'width=630,height=480,menubar=no,toolbar=yes,scrollbars=yes,resizable=yes');
	}
	
	// This function added for testing purposes. Allows you to view menu & status bar
	function opensite_test(url) {
		newwin = window.open(url, 'siteWin', 'width=630,height=480,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes,location=yes');
	}
	
	// For SSL certificate popups
	function opensite_ssl(url) {
		newwin = window.open(url, 'siteWin', 'width=520,height=500,menubar=no,toolbar=no,scrollbars=yes,resizable=no,status=yes,location=no');
	}
	
	// For SSL certificate popups
	function opensite_commission(url) {
		newwin = window.open(url, 'siteWin', 'width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no');
	}
/* end old functions */

	
	
	
	
/*
	general rollover function
	a = element id
	b = image uri
*/
function swapimage(a, b) {
	document.getElementById(a).src = b;
}
function imageswap(a, b) {
	document.getElementById(a).src = b;
}


/*
	general popup function
	a = uri
	b = width
	c = height
*/
function pop(a, b, c) {
	var top = (screen.availHeight-c)/2;
	var left = (screen.availWidth-b)/2;
	window.open(a, "_blank", "width="+b+",height="+c+",top="+top+",left="+left+",resizable=yes,status=no,scrollbars=yes");
}


/*
	autotab
	a = form name
	b = this element name
	c = length
	d = next element name
*/
function autotab(a, b, c, d) {
	var Val; //PSI fix for defect ID : 4157
	var isNN = (navigator.appName.indexOf("Netscape")!=-1); 
	var theEvent = window.event || arguments.callee.caller.arguments[0];
	Val = (isNN) ? theEvent.which : theEvent.keyCode; //END PSI fix for defect ID : 4157 
	if (Val == 16 || Val == 9 || Val == 36 || Val == 37 || Val == 39 || Val == 46) { } else { //CHECKING FOR THE SHIFT KEY OR THE TAB KEY BEING PRESSED
		if (document[a][b].value.length >= c) {
			document[a][d].focus();
		}
	}
}


/* service availability check wait */
function check(x) {
	if (verifyAll(x)) {
		document.getElementById("submit").style.display = "none";
		document.getElementById("wait").style.display = "";
	} else {
		return false;
	}
}





