rem: var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); gRedirectorType = parent.getAccountValue(account, accountValues, "server", "redirectorType", null, false); hideShowControls(type); 
add: var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); gRedirectorType = parent.getAccountValue(account, accountValues, "server", "redirectorType", null, false); hideShowControls(type); 
context: function onPreInit(account, accountValues){    // Bug 134238    // Make sure server.isSecure will be saved before server.port preference    parent.getAccountValue(account, accountValues, "server", "isSecure", null, false);    var type = parent.getAccountValue(account, accountValues, "server", "type", null, false);    gRedirectorType = parent.getAccountValue(account, accountValues, "server", "redirectorType", null, false);    hideShowControls(type);    gServer = account.incomingServer;        if(!account.incomingServer.canEmptyTrashOnExit)    {      document.getElementById("server.emptyTrashOnExit").setAttribute("hidden", "true");      document.getElementById("imap.deleteModel.box").setAttribute("hidden", "true");    }    var hideButton = false;    try {      if (gRedirectorType) {        var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);        var prefString = "mail.accountmanager." + gRedirectorType + ".hide_advanced_button";        hideButton = prefs.getBoolPref(prefString);      }    }    catch (ex) { }    if (hideButton)      document.getElementById("server.advancedbutton").setAttribute("hidden", "true");      else       document.getElementById("server.advancedbutton").removeAttribute("hidden");  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f4546c34f2e26f7223335bffc744ac12abff34c1/am-server.js/buggy/mailnews/base/prefs/resources/content/am-server.js