context: function setupWizardPanels() {    if (gCurrentAccountData && gCurrentAccountData.useOverlayPanels) {      if ("testingIspServices" in this) {        if ("SetPageMappings" in this && testingIspServices()) {          SetPageMappings(document.documentElement.currentPage.id, "done");        }      }    }    var pageData = parent.GetPageData();       // We default this to false, even though we could set it to true if we    // are going to display the page. However as the accname page will set    // it to true for us, we'll just default it to false and not work it out    // twice.    setPageData(pageData, "accname", "userset", false);    // If we need to skip wizardpanels, set the wizard to jump to the    // summary page i.e., last page. Otherwise, set the flow based    // on type of account (mail or news) user is creating.    var skipPanels = "";    try {      if (gCurrentAccountData.wizardSkipPanels)        skipPanels = gCurrentAccountData.wizardSkipPanels.toString().toLowerCase();    } catch(ex) {}      // "done" is the only required panel for all accounts. We used to require an identity panel but not anymore.      // initialize wizardPanels with the optional mail/news panels      var wizardPanels, i;      var isMailAccount = pageData.accounttype.mailaccount;    if (skipPanels == "true") // Support old syntax of true/false for wizardSkipPanels      wizardPanels = new Array("identitypage");     else if (isMailAccount && isMailAccount.value)        wizardPanels = new Array("identitypage", "serverpage", "loginpage", "accnamepage");      else        wizardPanels = new Array("identitypage", "newsserver", "accnamepage");      // Create a hash table of the panels to skip      var skipArray = skipPanels.split(",");      var skipHash = new Array();      for (i = 0; i < skipArray.length; i++)        skipHash[skipArray[i]] = skipArray[i];      // Remove skipped panels      i = 0;      while (i < wizardPanels.length) {        if (wizardPanels[i] in skipHash)          wizardPanels.splice(i, 1);        else          i++;      }           wizardPanels.push("done");      // Set up order of panels      for (i = 0; i < (wizardPanels.length-1); i++)        setNextPage(wizardPanels[i], wizardPanels[i+1]);          // make the account type page go to the very first of our approved wizard panels...this is usually going to      // be accounttype --> identitypage unless we were configured to skip the identity page      setNextPage("accounttype",wizardPanels[0]);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/415df9fd4289ecc1328f5ca5a0494b5f841ce39a/aw-accounttype.js/buggy/mailnews/base/prefs/resources/content/aw-accounttype.js