add:   if (gPrefs.prefIsLocked("ldap_2.disable_button_add")) document.getElementById("addLDAP").setAttribute("disabled", "true");  
context: function OnLoadAddressBook(){  gAddressBookBundle = document.getElementById("bundle_addressBook");  gSearchInput = document.getElementById("searchInput");  verifyAccounts(null); 	// this will do migration, if we need to.  top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook);  InitCommonJS();  UpgradeAddressBookResultsPaneUI("mailnews.ui.addressbook_results.version");  GetCurrentPrefs();  AddPrefObservers();  // FIX ME - later we will be able to use onload from the overlay  OnLoadCardView();	  SetupAbCommandUpdateHandlers();  //workaround - add setTimeout to make sure dynamic overlays get loaded first  setTimeout('SelectFirstAddressBook()',0);    // add a listener, so we can switch directories if  // the current directory is deleted  var addrbookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService().QueryInterface(Components.interfaces.nsIAddrBookSession);  // this listener only cares when a directory is removed  addrbookSession.addAddressBookListener(gAddressBookAbListener, Components.interfaces.nsIAbListener.directoryRemoved);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/508030fb1594bb1e6aed46136d96b6808492bc8e/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js