﻿// code to make input fields white and not yellow
	if(window.attachEvent)
		window.attachEvent("onload",setListeners);

	function setListeners()
	{
		inputList = document.getElementsByTagName("INPUT");
		for(i=0;i<inputList.length;i++)
		{
			inputList[i].attachEvent("onpropertychange",restoreStyles);
			inputList[i].style.backgroundColor = "";
		}
		selectList = document.getElementsByTagName("SELECT");
		for(i=0;i<selectList.length;i++)
		{
			selectList[i].attachEvent("onpropertychange",restoreStyles);
			selectList[i].style.backgroundColor = "";
		}
	}
						
	function popupGeneric(popURL,popHeight)
	{
		if (document.all)
			var xMax = screen.width, yMax = screen.height;
		else
			if (document.layers)
				var xMax = window.outerWidth, yMax = window.outerHeight;
			else
				var xMax = 520, yMax=590;

		var xOffset = (xMax - 520)/2, yOffset = (yMax - 590)/2;	
		window.open(popURL,'tell','toolbar=0,screenX='+xOffset+', screenY='+yOffset+', top='+yOffset+', left='+xOffset+',location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=595,height='+popHeight+'');
	}

	function restoreStyles()
	{
		if(event.srcElement.style.backgroundColor != "")
		event.srcElement.style.backgroundColor = "";
	}
	//-->
	// end code to make input fields white and not yellow
