rem: document.getElementById("tabbox").selectedTab = document.getElementById("pop3Tab"); document.getElementById("imapTab").hidden = true;  
add: document.getElementById("imapPanel").hidden = true; 
context: function onLoad(){  if (gServerSettings.serverType == "imap")  {    document.getElementById("tabbox").selectedTab = document.getElementById("imapTab");    document.getElementById("pop3Tab").hidden = true;    // don't hide panel - it hides all subsequent panels  }  else if (gServerSettings.serverType == "pop3")  {    var radioGroup = document.getElementById("folderStorage");    document.getElementById("tabbox").selectedTab = document.getElementById("pop3Tab");    document.getElementById("imapTab").hidden = true;    // just hide the tab, don't hide panel - it hides all subsequent panels    gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);    gFirstDeferredAccount = gServerSettings.deferredToAccount;    var localFoldersAccount = getLocalFoldersAccount();    if (gFirstDeferredAccount.length)    {      var account = gAccountManager.getAccount(gFirstDeferredAccount);      if (account)      {        var thisServer = account.incomingServer;        SetFolderPicker(thisServer.serverURI, 'deferedServerFolderPicker');      }      if (gFirstDeferredAccount == localFoldersAccount.key)      {        radioGroup.selectedItem = document.getElementById("globalInbox");        SetFolderPicker(localFoldersAccount.incomingServer.serverURI, 'deferedServerFolderPicker');        updateInboxAccount(false, true);      }      else      {        radioGroup.selectedItem = document.getElementById("deferToServer");        SetFolderPicker(account.incomingServer.serverURI, 'deferedServerFolderPicker');        updateInboxAccount(true, true);      }    }    else    {      radioGroup.selectedItem = document.getElementById("accountDirectory");      // we should find out if there's another pop3/movemail server to defer to,      // perhaps by checking the number of elements in the picker. For now,       // just use the local folders account      SetFolderPicker(localFoldersAccount.incomingServer.serverURI, 'deferedServerFolderPicker');      updateInboxAccount(false, false);    }  }  else  {    document.getElementById("imapTab").hidden = true;    document.getElementById("pop3Tab").hidden = true;  }  var controls = getControls();  for (var i = 0; i < controls.length; i++)  {    var slot = controls[i].id;    if (slot in gServerSettings)    {      if (controls[i].localName == "checkbox")        controls[i].checked = gServerSettings[slot];      else        controls[i].value = gServerSettings[slot];    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ba82559445a7ad3bea2eb3ee82beb3bddd765ea1/am-server-advanced.js/clean/mailnews/base/prefs/resources/content/am-server-advanced.js