rem: window.openDialog("chrome: 
add: var windowManagerInterface = GetWindowMediator(); var searchWindow = windowManagerInterface.getMostRecentWindow("mailnews:search");  if (searchWindow) searchWindow.focus(); else window.openDialog("chrome: "chrome,resizable,centerscreen,dialog=no", { folder: preselectedFolder }); 
context: function MsgSearchMessages(){    var preselectedFolder = GetFirstSelectedMsgFolder();    window.openDialog("chrome://messenger/content/SearchDialog.xul", "SearchMail", "chrome,resizable,centerscreen,dialog=no", { folder: preselectedFolder });}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d17db8adf49933b35a3479a8dd71c66431189bff/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js