rem: SetUpOKCancelButtons(); centerWindowOnScreen(); 
add: if (gStartupMode) { document.documentElement.setAttribute("buttonlabelcancel", document.documentElement.getAttribute("buttonlabelexit")); document.documentElement.setAttribute("buttonlabelaccept", document.documentElement.getAttribute("buttonlabelstart")); }  
context: function StartUp(){  gDialogParams = window.arguments[0].                    QueryInterface(Components.interfaces.nsIDialogParamBlock);  gStartupMode = (gDialogParams.GetString(0) == "startup");    gProfileManagerBundle = document.getElementById("bundle_profileManager");  gBrandBundle = document.getElementById("bundle_brand");  SetUpOKCancelButtons();  centerWindowOnScreen();  if(window.location && window.location.search && window.location.search == "?manage=true" )    SwitchProfileManagerMode();      // Set up the intro text, depending on our context  var introTextItem = document.getElementById("intro");  var introText, insertText;  if (gStartupMode) {    insertText = gProfileManagerBundle.getFormattedString("startButton",                                    [gBrandBundle.getString("brandShortName")]);    introText = gProfileManagerBundle.getFormattedString("intro_start",                    [insertText]);  }  else {    insertText = gProfileManagerBundle.getString("selectButton");    introText = gProfileManagerBundle.getFormattedString("intro_switch",                    [insertText]);  }  introTextItem.childNodes[0].nodeValue = introText;  var dirServ = Components.classes['@mozilla.org/file/directory_service;1']                          .getService(Components.interfaces.nsIProperties);  // "AggRegF" stands for Application Registry File.  // Forgive the weird name directory service has adapted for  // application registry file....  var regFile = dirServ.get("AppRegF", Components.interfaces.nsIFile);  Registry = Components.classes['@mozilla.org/registry;1'].createInstance();  Registry = Registry.QueryInterface(Components.interfaces.nsIRegistry);  Registry.open(regFile);  loadElements();  highlightCurrentProfile();  var offlineState = document.getElementById("offlineState");  if (gStartupMode) {    // set the checkbox to reflect the current state.    var ioService = Components.classes["@mozilla.org/network/io-service;1"].                      getService(Components.interfaces.nsIIOService);    offlineState.checked = ioService.offline;  }  else {    // hide the checkbox in this context    offlineState.hidden = true;  }  var autoSelectLastProfile = document.getElementById("autoSelectLastProfile");  var prefs = Components.classes["@mozilla.org/preferences-service;1"]                    .getService(Components.interfaces.nsIPrefBranch);  if (prefs.getBoolPref("profile.manage_only_at_launch"))    autoSelectLastProfile.hidden = true;  else    autoSelectLastProfile.checked = profile.startWithLastUsedProfile;  var profileList = document.getElementById("profiles");  profileList.focus();  DoEnabling();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c317c8f1df012e89df5d3d27bb1d866419b98b47/profileSelection.js/clean/profile/resources/content/profileSelection.js