add:  if (!selectedAB) selectedAB = kPersonalAddressbookURI; 
context: function GetSelectedAddressBookDirID(abListItem){  var selectedAB = 0;  var abDirEntries = document.getElementById(abListItem);  if (abDirEntries && abDirEntries.localName == "tree" && abDirEntries.currentIndex >= 0) {    var selected = abDirEntries.contentView.getItemAtIndex(abDirEntries.currentIndex);    selectedAB = selected.id;  }  // request could be coming from the context menu of addressbook panel in sidebar  // addressbook dirs are listed as menu item. So, get the selected item id.  if (!selectedAB && abDirEntries && abDirEntries.localName == "menulist" && abDirEntries.selectedItem)    selectedAB = abDirEntries.selectedItem.getAttribute("id");  return selectedAB;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/90d68610dbe3848472aba3943165651c893ceb04/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js