rem: var dirServ = Components.classes['component: 
add: var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); 
context: function StartUp(){  SetUpOKCancelButtons();  centerWindowOnScreen();  if(window.location && window.location.search && window.location.search == "?manage=true" )    SwitchProfileManagerMode();  var dirServ = Components.classes['component://netscape/file/directory_service'].createInstance();  dirServ = dirServ.QueryInterface(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['component://netscape/registry'].createInstance();  Registry = Registry.QueryInterface(Components.interfaces.nsIRegistry);  Registry.open(regFile.path);   // get new profile registry & users location and dump it to console   // to let users know about it.  var regFolder = dirServ.get("AppRegD", Components.interfaces.nsIFile);  dump("New location for profile registry and user profile directories is -> " + regFolder.path + "\n");  loadElements();  highlightCurrentProfile();  // set the checkbox to reflect the current state.  var offlineState = document.getElementById("offlineState");  try {    var ioService = nsJSComponentManager.getServiceByID("{9ac9e770-18bc-11d3-9337-00104ba0fd40}",                                                    "nsIIOService");    offlineState.checked = ioService.offline;  }  catch(e) {  }  var profileTree = document.getElementById("profiles");  profileTree.focus();      DoEnabling();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/profileSelection.js/clean/profile/resources/content/profileSelection.js