rem: var hideMenus = (gSendFormat == nsIMsgCompSendFormat.PlainText); format_menubar.hidden = hideMenus; insert_menubar.hidden = hideMenus; show_menuitem.hidden = hideMenus; toolbar.hidden = hideMenus || 
add: gHideMenus = (gSendFormat == nsIMsgCompSendFormat.PlainText); format_menubar.hidden = gHideMenus; insert_menubar.hidden = gHideMenus; show_menuitem.hidden = gHideMenus; toolbar.hidden = gHideMenus || 
context: function OutputFormatMenuSelect(target){  if (gMsgCompose)  {    var msgCompFields = gMsgCompose.compFields;    var toolbar = document.getElementById("FormatToolbar");    var format_menubar = document.getElementById("formatMenu");    var insert_menubar = document.getElementById("insertMenu");    var show_menuitem = document.getElementById("menu_showFormatToolbar");    if (msgCompFields)      switch (target.getAttribute('id'))      {        case "format_auto":  gSendFormat = nsIMsgCompSendFormat.AskUser;     break;        case "format_plain": gSendFormat = nsIMsgCompSendFormat.PlainText;   break;        case "format_html":  gSendFormat = nsIMsgCompSendFormat.HTML;        break;        case "format_both":  gSendFormat = nsIMsgCompSendFormat.Both;        break;      }    var hideMenus = (gSendFormat == nsIMsgCompSendFormat.PlainText);    format_menubar.hidden = hideMenus;    insert_menubar.hidden = hideMenus;    show_menuitem.hidden = hideMenus;    toolbar.hidden = hideMenus ||      (show_menuitem.getAttribute("checked") == "false");  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/57b7ad0ec2eea7518e968005d36dafb0ad731e66/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js