rem: var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator); var abSearchWindow = windowManagerInterface.getMostRecentWindow("mailnews:absearch");  if (abSearchWindow) abSearchWindow.focus(); else window.openDialog("chrome: "chrome,resizable,status,centerscreen,dialog=no", {directory: null}); 
add: var args = { directory: null }; OpenOrFocusWindow(args, "mailnews:absearch", "chrome: 
context: function MsgSearchAddresses(){    var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();    var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);    var abSearchWindow = windowManagerInterface.getMostRecentWindow("mailnews:absearch");    if (abSearchWindow)        abSearchWindow.focus();    else        window.openDialog("chrome://messenger/content/ABSearchDialog.xul", "",                           "chrome,resizable,status,centerscreen,dialog=no", {directory: null});}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9b625fd027dd9a6eb41d92743b877415f68eef61/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js