rem: var selectedItems = dirTree.selectedItems; if (selectedItems.length != 1) return;  var selectedABURI = selectedItems[0].getAttribute('id'); 
add: var selectedABURI = GetSelectedDirectory(); if (!selectedABURI) return; 
context: function onAdvancedAbSearch(){  var selectedItems = dirTree.selectedItems;  if (selectedItems.length != 1)    return;  var selectedABURI = selectedItems[0].getAttribute('id');  window.openDialog("chrome://messenger/content/ABSearchDialog.xul", "",                     "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js