rem: var layoutType = gPrefs.getIntPref("mail.pane_config");  var paramBlock = Components.classes["@mozilla.org/embedcomp/dialogparam;1"].createInstance(Components.interfaces.nsIDialogParamBlock); paramBlock.SetString(0, uriToOpen); paramBlock.SetInt(0, keyToSelect); if(layoutType == 0) window.openDialog("chrome: else window.openDialog("chrome: 
add:  var mailWindowService = Components.classes["@mozilla.org/messenger/windowservice;1"].getService(Components.interfaces.nsIMessengerWindowService); if (mailWindowService) mailWindowService.openMessengerWindowWithUri(uriToOpen, keyToSelect); 
context: function MsgOpenNewWindowForFolder(uri, key){  var uriToOpen = uri;  var keyToSelect = key;  if (!uriToOpen)    // use GetSelectedFolderURI() to find out which message to open instead of    // GetLoadedMsgFolder().QueryIntervace(Components.interfaces.nsIRDFResource).value.    // This is required because on a right-click, the currentIndex value will be    // different from the actual row that is highlighted.  GetSelectedFolderURI()    // will return the message that is highlighted.    uriToOpen = GetSelectedFolderURI();  if (uriToOpen) {    var layoutType = gPrefs.getIntPref("mail.pane_config");    var paramBlock = Components.classes["@mozilla.org/embedcomp/dialogparam;1"].createInstance(Components.interfaces.nsIDialogParamBlock);    paramBlock.SetString(0, uriToOpen);    paramBlock.SetInt(0, keyToSelect);    if(layoutType == 0)      window.openDialog("chrome://messenger/content/messenger.xul", "_blank", "all,chrome,dialog=no,status,toolbar", paramBlock);    else      window.openDialog("chrome://messenger/content/mail3PaneWindowVertLayout.xul", "_blank", "all,chrome,dialog=no,status,toolbar", paramBlock);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/46d90c3f99d5def8a899461c35c64716e0dd1f41/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js