rem: } 
add: } 
context: function CheckValidEmailAddress(aTo, aCC, aBCC){  var invalidStr = null;  // crude check that the to, cc, and bcc fields contain at least one '@'.  // We could parse each address, but that might be overkill.  if (aTo.length > 0 && (aTo.indexOf("@") <= 0 || aTo.indexOf("@") == aTo.length - 1))    invalidStr = aTo;  else if (aCC.length > 0 && (aCC.indexOf("@") <= 0 || aCC.indexOf("@") == aCC.length - 1))    invalidStr = aCC;  else if (aBCC.length > 0 && (aBCC.indexOf("@") <= 0 || aBCC.indexOf("@") == aBCC.length - 1))    invalidStr = aBCC;  if (invalidStr)  {    var errorTitle = sComposeMsgsBundle.getString("sendMsgTitle");    var errorMsg = sComposeMsgsBundle.getFormattedString("addressInvalid", [invalidStr], 1);    if (gPromptService)      gPromptService.alert(window, errorTitle, errorMsg);    return false;  }   return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4cc7df78f937cfb917c781be39bbe817682787c5/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js