if (!gEditingDraft && !gExplicitSave) 
if (!gEditingDraft && gAutoSaveKickedIn) 
function ComposeCanClose(){  if (gSendOrSaveOperationInProgress)  {    var result;    if (gPromptService)    {      var promptTitle = sComposeMsgsBundle.getString("quitComposeWindowTitle");      var promptMsg = sComposeMsgsBundle.getString("quitComposeWindowMessage");      var quitButtonLabel = sComposeMsgsBundle.getString("quitComposeWindowQuitButtonLabel");      var waitButtonLabel = sComposeMsgsBundle.getString("quitComposeWindowWaitButtonLabel");      result = gPromptService.confirmEx(window, promptTitle, promptMsg,          (gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_0) +          (gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_1),          waitButtonLabel, quitButtonLabel, null, null, {value:0});      if (result == 1)      {        gMsgCompose.abort();        return true;      }      return false;    }  }  // Returns FALSE only if user cancels save action  if (gContentChanged || gMsgCompose.bodyModified || !gExplicitSave)  {    // call window.focus, since we need to pop up a dialog    // and therefore need to be visible (to prevent user confusion)    window.focus();    if (gPromptService)    {      result = gPromptService.confirmEx(window,                              sComposeMsgsBundle.getString("saveDlogTitle"),                              sComposeMsgsBundle.getString("saveDlogMessage"),                              (gPromptService.BUTTON_TITLE_SAVE * gPromptService.BUTTON_POS_0) +                              (gPromptService.BUTTON_TITLE_CANCEL * gPromptService.BUTTON_POS_1) +                              (gPromptService.BUTTON_TITLE_DONT_SAVE * gPromptService.BUTTON_POS_2),                              null, null, null,                              null, {value:0});      switch (result)      {        case 0: //Save          gCloseWindowAfterSave = true;          SaveAsDraft();          return false;        case 1: //Cancel          return false;        case 2: //Don't Save          // don't delete the draft if we didn't start off editing a draft          // and the user hasn't explicitly saved it.          if (!gEditingDraft && !gExplicitSave)            RemoveDraft();          break;      }    }    SetContentAndBodyAsUnmodified();  }  return true;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/3ee8f8fd42059bf66a99ea00bf77a137598dbac7/MsgComposeCommands.js/clean/mail/components/compose/content/MsgComposeCommands.js