dump("type = " + type + "\n"); protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo); 
protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type] .getService(Components.interfaces.nsIMsgProtocolInfo); 
function loginPageInit() {    gPrefsBundle = document.getElementById("bundle_prefs");    var pageData = parent.GetPageData();    var loginNameInput = document.getElementById("username");        if (loginNameInput.value == "") {      // retrieve data from previously entered pages      var type = parent.getCurrentServerType(pageData);      dump("type = " + type + "\n");      protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo);      if (protocolinfo.requiresUsername) {        // since we require a username, use the uid from the email address        loginNameInput.value = parent.getUsernameFromEmail(pageData.identity.email.value);      }    }    var smtpNameInput = document.getElementById("smtpusername");    var smtpServer = parent.smtpService.defaultServer;    if (smtpServer && smtpServer.hostname && smtpServer.username &&        smtpServer.redirectorType == null) {      // we have a default SMTP server, so modify and show the static text      // and store the username for the default server in the textbox.      modifyStaticText(smtpServer.username, "2")      hideShowLoginSettings(2, 1, 3);      smtpNameInput.value = smtpServer.username;    }    else {      // no default SMTP server yet, so need to compare      // incoming and outgoing server names      var smtpServerName = pageData.server.smtphostname.value;      var incomingServerName = pageData.server.hostname.value;      if (smtpServerName == incomingServerName) {        // incoming and outgoing server names are the same, so show        // the static text and make sure textbox blank for later tests.        modifyStaticText(smtpServerName, "3")        hideShowLoginSettings(3, 1, 2);        smtpNameInput.value = "";      }      else {        // incoming and outgoing server names are different, so set smtp        // username's textbox to be the same as incoming's one, unless already set.        hideShowLoginSettings(1, 2, 3);        smtpNameInput.value = smtpNameInput.value || loginNameInput.value;      }    }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/99beadf3c69fe9bfb954b4ac06937d53bd3fcc3b/aw-login.js/clean/mailnews/base/prefs/resources/content/aw-login.js