rem: var smtpTextBox = document.getElementById("smtphostname");  
context: function serverPageInit() {  gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage");  gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver");  // Server type selection (pop3 or imap) is for mail accounts only  var isMailAccount = parent.GetPageData().accounttype.mailaccount;  if (isMailAccount && isMailAccount.value){    var serverTypeRadioGroup = document.getElementById("servertype");    /*      * Check to see if the radiogroup has any value. If there is no     * value, this must be the first time user visting this page in the     * account setup process. So, the default is set to pop3. If there      * is a value (it's used automatically), user has already visited      * page and server type selection is done. Once user visits the page,      * the server type value from then on will persist (whether the selection      * came from the default or the user action).     */    if (!serverTypeRadioGroup.value) {      // Set pop3 server type as default selection      var pop3RadioItem = document.getElementById("pop3");      serverTypeRadioGroup.selectedItem = pop3RadioItem;    }  }  gPrefsBundle = document.getElementById("bundle_prefs");  var smtpTextBox = document.getElementById("smtphostname");  var smtpServer = parent.smtpService.defaultServer;  if (smtpTextBox && smtpTextBox.value == "" &&      smtpServer.hostname)    smtpTextBox.value = smtpServer.hostname;  // modify the value in the smtp display if we already have a   // smtp server so that the single string displays the   // name of the smtp server.  var smtpStatic = document.getElementById("smtpStaticText");  if (smtpServer && smtpServer.hostname && smtpStatic &&      smtpStatic.hasChildNodes()) {    var staticText = smtpStatic.firstChild.nodeValue;    staticText = staticText.replace(/@server_name@/, smtpServer.hostname);    while (smtpStatic.hasChildNodes())      smtpStatic.removeChild(smtpStatic.firstChild);    var staticTextNode = document.createTextNode(staticText);    smtpStatic.appendChild(staticTextNode);  }    hideShowSmtpSettings(smtpServer);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/13365990b3d1948726ae5e7516aa908522199353/aw-server.js/clean/mailnews/base/prefs/resources/content/aw-server.js