/* 
	Some of the sitewide forms have labels that are set with background images and 
	are then "cleared" to plain white when they are clicked on. This is done by 
	setting the style from, for example "passwordfield" (which has a BG image) to 
	simply "field" (which does not have a BG image). 
	This javascript runs 1/10 of a second after the page loads to check these 
	fields in case they were autofilled by the browser, then sets their style back
	to "field" if that was the case, so things display correctly in this case. 
	- C. MacAuley, DDIV, 4/27/08
*/

function checkfields(fieldname) {
	if (document.getElementById) {
		myfield = document.getElementById(fieldname);
		if (myfield) { 
			if (myfield.value != '') myfield.className='field';
		}
	}
}
function runcheckfields() {
	checkfields('loginuserfield');
	checkfields('loginpasswordfield');
	checkfields('searchfield');
}
setTimeout("runcheckfields();",100);

