rem: message = GetLoadedMessage(); 
add: message = GetSelectedMessage(0); 
context: function MsgOpenNewWindowForMessage(messageUri, folderUri){    var message;    if(!messageUri)    {        message = GetLoadedMessage();        var messageResource = message.QueryInterface(Components.interfaces.nsIRDFResource);        messageUri = messageResource.Value;    }    if(!folderUri)    {        message = RDF.GetResource(messageUri);        message = message.QueryInterface(Components.interfaces.nsIMessage);        var folder = message.msgFolder;        var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);        folderUri = folderResource.Value;    }    if(messageUri && folderUri)    {        window.openDialog( "chrome://messenger/content/messageWindow.xul", "_blank", "chrome,all,dialog=no", messageUri, folderUri );    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4048d6a36c8548072f966e99bdcf25dcd5e1f0a3/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js