// JavaScript Document
//---------------------------------------------------
//-----Disable Google toolbar - yellow fields -------
//---------------------------------------------------
  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 = "";
  }//-->


//----------------------------------------------

	function setFocus() {
		if (document.forms[0]) {
			for (i = 0; i < document.forms[0].elements.length; i++) {
				if (document.forms[0].elements[i].type != "hidden" &&
					document.forms[0].elements[i].disabled != true) {
	
					document.forms[0].elements[i].focus();
					
					return;
				}
			}
		}	
	}

//----------------------------------------------
//----------------------------------------------

function Toggle (id) {
	trElement = document.getElementById(id);
	if (trElement){
		if (trElement.className == 'closed'){
			trElement.className = "open";
		} else {
			trElement.className = "closed";
		}
	}
}

//----------------------------------------------


