// Google Toolbar and other programs often have an automatically activated AutoFill capability that
// can be confusing to most users who do not know why some fields on a form are yellow (these must be required... well not quite... hmmm).
// This code clears out that yellow color, but should not effect the ability to use the feature should the user actively utilize AutoFill.
// Source: http://code.jenseng.com/google/

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 restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }
