 if (msgHdr) 
  if (msgHdr && junkBarWasDisplayed != gMessageNotificationBar.isFlagSet(kMsgNotificationJunkBar)) 
function HandleJunkStatusChanged(folder){  // this might be the stand alone window, open to a message that was  // and attachment (or on disk), in which case, we want to ignore it.  var loadedMessage = GetLoadedMessage();  if (loadedMessage && (!(/type=application\/x-message-display/.test(loadedMessage))) && IsCurrentLoadedFolder(folder))  {    // if multiple message are selected and we change the junk status    // we don't want to show the junk bar (since the message pane is blank)    var msgHdr = null;    if (GetNumSelectedMessages() == 1)      msgHdr = messenger.msgHdrFromURI(loadedMessage);    gMessageNotificationBar.setJunkMsg(msgHdr);        if (msgHdr)    {      // we may be forcing junk mail to be rendered with sanitized html. In that scenario, we want to       // reload the message if the status has just changed to not junk.       var sanitizeJunkMail = gPrefBranch.getBoolPref("mail.spam.display.sanitize");      if (sanitizeJunkMail) // only bother doing this if we are modifying the html for junk mail....      {        var moveJunkMail = (folder && folder.server && folder.server.spamSettings) ?	                          folder.server.spamSettings.manualMark : false;        var junkScore = msgHdr.getStringProperty("junkscore");         var isJunk = ((junkScore != "") && (junkScore != "0"));        // we used to only reload the message if we were toggling the message to NOT JUNK from junk        // but it can be useful to see the HTML in the message get converted to sanitized form when a message        // is marked as junk.        // Furthermore, if we are about to move the message that was just marked as junk,         // then don't bother reloading it.        if (!(isJunk && moveJunkMail))           MsgReload();      }    }  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a6423d1251ae5a50ecd9b6a0ee7710dedfcf7b41/mailWindowOverlay.js/clean/mail/base/content/mailWindowOverlay.js