rem: document.getElementById("useGlobalPref").removeAttribute("disabled"); 
add: document.getElementById("useGlobalPref").removeAttribute("disabled"); 
context: function enabling(){  var autocomplete = document.getElementById("ldapAutocomplete");  var directoriesList =  document.getElementById("directoriesList");   var directoriesListPopup = document.getElementById("directoriesListPopup");  var editButton = document.getElementById("editButton");  // this is the hidden text element that assigned a value from the prefs  var overrideGlobalPref = document.getElementById("identity.overrideGlobalPref");  switch(autocomplete.value)  {    case "0":      directoriesList.setAttribute("disabled", true);      directoriesListPopup.setAttribute("disabled", true);      editButton.setAttribute("disabled", true);      break;    case "1":        directoriesList.removeAttribute("disabled");        directoriesListPopup.removeAttribute("disabled");        editButton.removeAttribute("disabled");      break;        }  if (!gPrefInt) {    gPrefInt = Components.classes["@mozilla.org/preferences-service;1"]                           .getService(Components.interfaces.nsIPrefBranch);  }  // If the default per-identity directory preferences are locked   // disable the corresponding elements.  if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".overrideGlobal_Pref")) {    document.getElementById("useGlobalPref").setAttribute("disabled", "true");    document.getElementById("directories").setAttribute("disabled", "true");  }  else  {	document.getElementById("useGlobalPref").removeAttribute("disabled");    document.getElementById("directories").removeAttribute("disabled");  }  if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".directoryServer")) {    document.getElementById("directoriesList").setAttribute("disabled", "true");    document.getElementById("directoriesListPopup").setAttribute("disabled", "true");  }  gFromGlobalPref = false;  LoadDirectories(directoriesListPopup);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dcfd14e8188e870f0c2476105228d02b84262d9b/am-addressing.js/buggy/mailnews/base/prefs/resources/content/am-addressing.js