// JavaScript Document

function nextField(curr,next){
if (curr.getAttribute&&curr.value.length==curr.getAttribute("maxlength"))
next.focus()
}


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 != "#a0d0ff"){
    event.srcElement.style.backgroundColor = "#000"; /* color of choice for AutoFill */
    document.all['googleblurb'].style.display = "block";
  }
}

/*

<div id="googleblurb" style="display:none;">
  You can use the AutoFill function on the Google toolbar to fill out
  the highlighted fields on this form.
  <a href="http://toolbar.google.com/autofill_help.html"
  title="AutoFill Help Page">Learn more</a>.
</div>

*/