rem: if (removeButton && bucketTree && bucketTree.selectedItems && bucketTree.selectedItems.length) removeButton.removeAttribute("disabled"); else removeButton.setAttribute("disabled", "true"); 
add: removeButton.disabled = bucketTree.view.selection.count == 0; 
context: function DialogBucketPaneSelectionChanged(){  var bucketTree = document.getElementById("addressBucket");  var removeButton = document.getElementById("remove");  if (removeButton && bucketTree && bucketTree.selectedItems && bucketTree.selectedItems.length)    removeButton.removeAttribute("disabled");  else    removeButton.setAttribute("disabled", "true");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/abSelectAddressesDialog.js/clean/mailnews/addrbook/resources/content/abSelectAddressesDialog.js