this._multipleStartOptions = true; mainStr = bundle.getString("homePageMultipleStartMain"); var multipleStart = document.getElementById("homePageMultipleStartMain"); multipleStart.setAttribute("label", mainStr); multipleStart.hidden = false; multipleStart.setAttribute("selected", true); singleStart.hidden = true;  for (i = 1; i <= startPages; i++) { radioItemId = "homePageMultipleStart" + i; radioItemLabel = bundle.getString(radioItemId + "Label"); radioItemValue = bundle.getString(radioItemId + "URL"); radioItem = document.getElementById(radioItemId); radioItem.hidden = false; radioItem.setAttribute("label", radioItemLabel); radioItem.setAttribute("value", radioItemValue); } } else { numberOfChoices++; mainStr = bundle.getString("homePageSingleStartMain"); radioItemValue = bundle.getString("homePageSingleStartMainURL"); singleStart.setAttribute("label", mainStr); singleStart.setAttribute("value", radioItemValue); singleStart.setAttribute("selected", true); } 
var mainStr = bundle.getString("homePageSingleStartMain"); singleStart.setAttribute("label", mainStr); singleStart.setAttribute("value", "DEFAULT"); 
  onHomePageMigrationPageShow: function ()  {    // only want this on the first run    if (!this._autoMigrate)      this._wiz.advance();    var numberOfChoices = 0;    try {      var bundle = document.getElementById("brandBundle");      var pageTitle = bundle.getString("homePageMigrationPageTitle");      var pageDesc = bundle.getString("homePageMigrationDescription");      var startPages = bundle.getString("homePageOptionCount");    } catch(ex) {}    if (!pageTitle || !pageDesc || !startPages || startPages < 1)      this._wiz.advance();    document.getElementById("homePageImport").setAttribute("label", pageTitle);    document.getElementById("homePageImportDesc").setAttribute("value", pageDesc);    this._wiz._adjustWizardHeader();    var singleStart = document.getElementById("homePageSingleStart");    var i, mainStr, radioItem, radioItemId, radioItemLabel, radioItemValue;    if (startPages > 1) {      numberOfChoices += startPages;      this._multipleStartOptions = true;      mainStr = bundle.getString("homePageMultipleStartMain");      var multipleStart = document.getElementById("homePageMultipleStartMain");      multipleStart.setAttribute("label", mainStr);      multipleStart.hidden = false;      multipleStart.setAttribute("selected", true);      singleStart.hidden = true;      for (i = 1; i <= startPages; i++) {        radioItemId = "homePageMultipleStart" + i;        radioItemLabel = bundle.getString(radioItemId + "Label");        radioItemValue = bundle.getString(radioItemId + "URL");        radioItem = document.getElementById(radioItemId);        radioItem.hidden = false;        radioItem.setAttribute("label", radioItemLabel);        radioItem.setAttribute("value", radioItemValue);      }    }    else {      numberOfChoices++;      mainStr = bundle.getString("homePageSingleStartMain");      radioItemValue = bundle.getString("homePageSingleStartMainURL");      singleStart.setAttribute("label", mainStr);      singleStart.setAttribute("value", radioItemValue);      singleStart.setAttribute("selected", true);    }    var source = null;    switch (this._source) {      case "ie":      case "macie":        source = "sourceNameIE";        break;      case "opera":        source = "sourceNameOpera";        break;      case "dogbert":        source = "sourceNameDogbert";        break;      case "safari":        source = "sourceNameSafari";        break;      case "seamonkey":        source = "sourceNameSeamonkey";        break;    }    // semi-wallpaper for crash when multiple profiles exist, since we haven't initialized mSourceProfile in places    this._migrator.getMigrateData(this._selectedProfile, this._autoMigrate);    var oldHomePageURL = this._migrator.sourceHomePageURL;    if (oldHomePageURL && source) {      numberOfChoices++;      var bundle2 = document.getElementById("bundle");      var appName = bundle2.getString(source);      var oldHomePageLabel = bundle.getFormattedString("homePageImport",                                                       [appName]);      var oldHomePage = document.getElementById("oldHomePage");      oldHomePage.setAttribute("label", oldHomePageLabel);      oldHomePage.setAttribute("value", oldHomePageURL);      oldHomePage.removeAttribute("hidden");    }    // if we don't have at least two options, just advance    if (numberOfChoices < 2)      this._wiz.advance();  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/8a2f5c1f616f9ff350d92ff33496ee55f66d3591/migration.js/buggy/browser/components/migration/content/migration.js