var autoSelectLastProfile = document.getElementById("autoSelectLastProfile"); gProfileService.startWithLastProfile = autoSelectLastProfile.checked; 
function acceptDialog(){  var appName = gBrandBundle.getString("brandShortName");  var profilesElement = document.getElementById("profiles");  var selectedProfile = profilesElement.selectedItem;  if (!selectedProfile) {    var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle");    var pleaseSelect =      gProfileManagerBundle.getFormattedString("pleaseSelect", [appName]);    gPromptService.alert(window, pleaseSelectTitle, pleaseSelect);    return false;  }  var profileLock;  try {    profileLock = selectedProfile.profile.lock({ value: null });  }  catch (e) {    var lockedTitle = gProfileManagerBundle.getString("profileLockedTitle");    var locked =      gProfileManagerBundle.getFormattedString("profileLocked2", [appName, selectedProfile.profile.name, appName]);    gPromptService.alert(window, lockedTitle, locked);    return false;  }  gDialogParams.objects.insertElementAt(profileLock.nsIProfileLock, 0, false);  var autoSelectLastProfile = document.getElementById("autoSelectLastProfile");  gProfileService.startWithLastProfile = autoSelectLastProfile.checked;  gProfileService.selectedProfile = selectedProfile.profile;  /* Bug 257777 */  gProfileService.startOffline = document.getElementById("offlineState").checked;  gDialogParams.SetInt(0, 1);  gDialogParams.SetString(0, selectedProfile.profile.name);  return true;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/66f5d7efcfbf1cbbc2f9361985998224ac73b193/profileSelection.js/buggy/toolkit/profile/content/profileSelection.js