<!--

// Google Fix for IE browsers

function setListeners(){
	inputList = document.getElementsByTagName("INPUT");
	for(i=0;i<inputList.length;i++){
		if (inputList[i].attachEvent) {
		  inputList[i].attachEvent("onpropertychange",restoreStyles);
		  inputList[i].style.backgroundColor = "";
		}
	}
	selectList = document.getElementsByTagName("SELECT");
	for(i=0;i<selectList.length;i++){
		if (inputList[i].attachEvent) {
		  selectList[i].attachEvent("onpropertychange",restoreStyles);
		  selectList[i].style.backgroundColor = "";
		}
	}
}

// Google Fix for IE browsers

function restoreStyles(){
	if(event.srcElement.style.backgroundColor != "")
	  event.srcElement.style.backgroundColor = "";
}


// onload function for initializations

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
		if (oldonload) {
			oldonload();
		}
		func();
		}
	}
}

addLoadEvent(setListeners);
