rem: window.openDialog("chrome: "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} ); 
add: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var existingSearchWindow = windowManager.getMostRecentWindow("mailnews:absearch"); if (existingSearchWindow) existingSearchWindow.focus(); else window.openDialog("chrome: "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI}); 
context: function onAdvancedAbSearch(){  var selectedABURI = GetSelectedDirectory();  if (!selectedABURI) return;  window.openDialog("chrome://messenger/content/ABSearchDialog.xul", "",                     "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/9b5edbbcdd87b667baa17c33d08f5009421e3ce8/addressbook.js/buggy/mail/components/addrbook/content/addressbook.js