/*
<!-- -----------------------------------------------------------------------------------    -->
<!-- Source Control Id: $Id: googlefix.js,v 1.2 2008/11/14 11:20:10 henning Exp $              -->
<!--                                                                                        -->
<!-- GlobeTOM Copyright Notice                                                              -->
<!-- All source code contained in this source file is protected by Copyright Laws of the    -->
<!-- Republic of South Africa. It is a copyright infringement to use this file as a whole   -->
<!-- or any part thereof without obtaining prior writtent consent from GlobeTOM.            -->
<!--                                                                                        -->
<!-- (c) GlobeTOM, 2008                                                                     -->
<!-- ------------------------------------------------------------------------------------   -->
<!--Source Control Id: $Id: googlefix.js,v 1.2 2008/11/14 11:20:10 henning Exp $-->    
*/
  
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 = "";
  }

