function gatherData() {
	var wHeight, wWidth, sHeight, sWidth, bitDepth, sData;
	
	if (typeof document.layers != "undefined") {	
		wHeight = window.innerHeight;
		wWidth = window.innerWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth; 
	} else {
		wHeight = document.body.clientHeight;
		wWidth = document.body.clientWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth; 
	}
	
	
	sData = "scr=" + sWidth + "x" + sHeight + " ";
	sData += "win=" + wWidth + "x" + wHeight + " ";
	sData += "depth=" + bitDepth;
	document.forms['Contractorlogin'].elements['ScreenRes'].value = sData;
	setCaret();
}

function setCaret() {
	var frm = document.forms['Contractorlogin'];
	if ((frm) && (frm.elements['UserName'].value == "")) {
		frm.elements['UserName'].focus();
	} else if ((frm) && (frm.elements['Password'].value == "")) {
		frm.elements['Password'].focus();
	}
}

function pacifyShowImg(theForm) {
	var theImages = theForm.getElementsByTagName("IMG");
	for ( var i = 0; i < theImages.length; i++ ) {
		if ( theImages[i].className == "pacifyHide" )
			theImages[i].className = "pacifyShow";
	}
	return true;
}