rem: var resultsTree = document.getElementById('resultsTree'); if ( resultsTree ) {  var cardList = resultsTree.selectedItems;  addressbook = Components.classes["@mozilla.org/addressbook;1"].getService(Components.interfaces.nsIAddressBook);  addressbook.deleteCards(resultsTree, resultsTree, cardList); } 
add: if (gAbView) gAbView.deleteSelectedCards(); 
context: function AbDelete(){  var resultsTree = document.getElementById('resultsTree');  if ( resultsTree )  {    //get the selected elements    var cardList = resultsTree.selectedItems;    // get AB service    addressbook = Components.classes["@mozilla.org/addressbook;1"].getService(Components.interfaces.nsIAddressBook);    // delete selected cards    addressbook.deleteCards(resultsTree, resultsTree, cardList);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/404e12e0541a3ffd54ae714e9a3401c380718f10/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js