rem: directoriesList.removeAttribute("disabled"); directoriesListPopup.removeAttribute("disabled"); 
add:   if (gPrefInt.prefIsLocked("ldap_2.autoComplete.directoryServer")) { directoriesList.setAttribute("disabled", true); directoriesListPopup.setAttribute("disabled", true); } else { directoriesList.removeAttribute("disabled"); directoriesListPopup.removeAttribute("disabled"); } 
context: function enableAutocomplete(){  var autocompleteLDAP = document.getElementById("autocompleteLDAP");    var directoriesList =  document.getElementById("directoriesList");   var directoriesListPopup = document.getElementById("directoriesListPopup");  var editButton = document.getElementById("editButton");//  var autocompleteSkipDirectory = document.getElementById("autocompleteSkipDirectory");  if (autocompleteLDAP.checked) {    directoriesList.removeAttribute("disabled");    directoriesListPopup.removeAttribute("disabled");    editButton.removeAttribute("disabled");//    autocompleteSkipDirectory.removeAttribute("disabled");  }  else {    directoriesList.setAttribute("disabled", true);    directoriesListPopup.setAttribute("disabled", true);    editButton.setAttribute("disabled", true);//    autocompleteSkipDirectory.setAttribute("disabled", true);  }  // if we do not have any directories disable the dropdown list box  if (gAvailDirectories.length < 1)    directoriesList.setAttribute("disabled", true);  gFromGlobalPref = true;  LoadDirectories(directoriesListPopup);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/14b2a8a92abc2e002da277ae9533dec68be17520/pref-directory.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory.js