rem: return !(gWindowLocked || isOffline); 
add: return !(gWindowLocked || gIsOffline); 
context:   isCommandEnabled: function(command)  {    //For some reason, when editor has the focus, focusedElement is null!.    var focusedElement = top.document.commandDispatcher.focusedElement;    var composeHTML = msgCompose && msgCompose.composeHTML;    switch (command)    {      //File Menu      case "cmd_attachFile":      case "cmd_attachPage":      case "cmd_close":      case "cmd_saveDefault":      case "cmd_saveAsFile":      case "cmd_saveAsDraft":      case "cmd_saveAsTemplate":      case "cmd_sendButton":      case "cmd_sendLater":      case "cmd_printSetup":      case "cmd_print":      case "cmd_sendWithCheck":        return !gWindowLocked;      case "cmd_sendNow":        return !(gWindowLocked || isOffline);      case "cmd_quit":        return true;      //Edit Menu      case "cmd_pasteQuote":      case "cmd_find":      case "cmd_findNext":        //Disable the editor specific edit commands if the focus is not into the body        return !focusedElement;      case "cmd_account":      case "cmd_preferences":        return true;      //View Menu      case "cmd_showComposeToolbar":        return true;      case "cmd_showFormatToolbar":        return composeHTML;      //Insert Menu      case "cmd_renderedHTMLEnabler":      case "cmd_insert":        return !focusedElement;      case "cmd_link":      case "cmd_anchor":      case "cmd_image":      case "cmd_hline":      case "cmd_table":      case "cmd_insertHTML":      case "cmd_insertChars":      case "cmd_insertBreak":      case "cmd_insertBreakAll":        return !focusedElement;      //Options Menu      case "cmd_selectAddress":        return !gWindowLocked;      case "cmd_spelling":        return !focusedElement;      case "cmd_outputFormat":        return composeHTML;//      case "cmd_quoteMessage"://        return mailSession && mailSession.topmostMsgWindow;      case "cmd_rewrap":        return !composeHTML && !focusedElement;      //Format Menu      case "cmd_decreaseFont":      case "cmd_increaseFont":      case "cmd_bold":      case "cmd_italic":      case "cmd_underline":      case "cmd_smiley":      case "cmd_strikethrough":      case "cmd_superscript":      case "cmd_subscript":      case "cmd_nobreak":      case "cmd_em":      case "cmd_strong":      case "cmd_cite":      case "cmd_abbr":      case "cmd_acronym":      case "cmd_code":      case "cmd_samp":      case "cmd_var":      case "cmd_removeList":      case "cmd_ul":      case "cmd_ol":      case "cmd_dt":      case "cmd_dd":      case "cmd_listProperties":      case "cmd_indent":      case "cmd_outdent":      case "cmd_objectProperties":      case "cmd_InsertTable":      case "cmd_InsertRowAbove":      case "cmd_InsertRowBelow":      case "cmd_InsertColumnBefore":      case "cmd_InsertColumnAfter":      case "cmd_SelectTable":      case "cmd_SelectRow":      case "cmd_SelectColumn":      case "cmd_SelectCell":      case "cmd_SelectAllCells":      case "cmd_DeleteTable":      case "cmd_DeleteRow":      case "cmd_DeleteColumn":      case "cmd_DeleteCell":      case "cmd_DeleteCellContents":      case "cmd_NormalizeTable":      case "cmd_tableJoinCells":      case "cmd_tableSplitCell":      case "cmd_editTable":        return !focusedElement;      default://        dump("##MsgCompose: command " + command + " disabled!\n");        return false;    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6d52592e83bce2a07c0c6646de9e9c15df155849/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js