

/*

When google's toolbar loads it automatically sets input fields to yellow, this kills that process

THANK YOU http://www.p3pwriter.com/LRN_181.asp

*/

if(window.attachEvent)window.attachEvent("onload",resetStyles);

function resetStyles(){
    unGoogle('INPUT');
    unGoogle('SELECT');
} 

function unGoogle(eleType){
    var t=document.getElementsByTagName(eleType);
    for(var i=0;i<t.length;i++){
        t[i].attachEvent('onpropertychange',resetCSS);
        t[i].style.backgroundColor='';
    }
} 

function resetCSS(){
    var s=event.srcElement.style;
    if(s.backgroundColor!='')s.backgroundColor='';
} 


/*

<script type="text/javascript">
<!--
  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 = "";
  }
//-->
</script>

*/