// JavaScript Document

  if(window.attachEvent)
    window.attachEvent("onload",setListeners);

  function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++){
		if(inputList[i].value != "Submit" && inputList[i].value != "Reset")
		{
     	 inputList[i].attachEvent("onpropertychange",restoreStyles);
      	inputList[i].style.backgroundColor = "#004724";
		}
    }
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++){
      selectList[i].attachEvent("onpropertychange",restoreStyles);
      selectList[i].style.backgroundColor = "";
    }
	
	textList = document.getElementsByTagName("textarea");
    for(i=0;i<textList.length;i++){
      textList[i].attachEvent("onpropertychange",restoreStyles);
      textList[i].style.backgroundColor = "#004724";
    }
	
  }

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