context: function InitMessageMenu(){    var aMessage = GetSelectedMessage(0);    var isNews = false;    if(aMessage)    {        isNews = GetMessageType(aMessage) == "news";    }    //We show reply to Newsgroups only for news messages.    var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu");    if(replyNewsgroupMenuItem)        replyNewsgroupMenuItem.setAttribute("hidden", isNews ? "" : "true");    //For mail messages we say reply. For news we say ReplyToSender.    var replyMenuItem = document.getElementById("replyMainMenu");    if(replyMenuItem)    {        replyMenuItem.setAttribute("hidden", !isNews ? "" : "true");    }    var replySenderMenuItem = document.getElementById("replySenderMainMenu");    if(replySenderMenuItem)    {        replySenderMenuItem.setAttribute("hidden", isNews ? "" : "true");    }    //disable the move and copy menus only if there are no messages selected.    var moveMenu = document.getElementById("moveMenu");    if(moveMenu)        moveMenu.setAttribute("disabled", !aMessage);    var copyMenu = document.getElementById("copyMenu");    if(copyMenu)        copyMenu.setAttribute("disabled", !aMessage);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/86157e730f47e3eb21fb36718608f00bf6da2f8e/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js