rem:   var hiddenInput = document.getElementById("servertype"); dump("hiddenInput = " + hiddenInput.value + "\n");  var servertypeMenulist = document.getElementById("servertypeMenulist"); if (hiddenInput.value) { var selectedElements = servertypeMenulist.getElementsByAttribute("data", hiddenInput.value); if (selectedElements && selectedElements.length>0) servertypeMenulist.selectedItem = selectedElements[0]; }   else { hiddenInput.value = servertypeMenulist.selectedItem.getAttribute("data"); } 
context: function onInit() {  // hack hack - initialize the menulist  var hiddenInput = document.getElementById("servertype");  dump("hiddenInput = " + hiddenInput.value + "\n");  var servertypeMenulist = document.getElementById("servertypeMenulist");  if (hiddenInput.value) {    var selectedElements =      servertypeMenulist.getElementsByAttribute("data", hiddenInput.value);    if (selectedElements && selectedElements.length>0)      servertypeMenulist.selectedItem = selectedElements[0];  }  // initialize to default selected item  else {    hiddenInput.value = servertypeMenulist.selectedItem.getAttribute("data");  }    var smtpTextField = document.getElementById("smtphostname");  var smtpServer = parent.smtpService.defaultServer;  if (smtpTextField && smtpTextField.value == "" &&      smtpServer.hostname)    smtpTextField.value = smtpServer.hostname;  setDivText("smtpStaticText", smtpServer.hostname);    hideShowSmtpSettings(smtpServer);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/42b0fdc20d8e8f35646fecfa8b2bb54cbf220a5d/aw-server.js/clean/mailnews/base/prefs/resources/content/aw-server.js