rem: var i = 1; var fieldValue = msgCompFields.GetTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_to"; i ++; }  fieldValue = msgCompFields.GetCc(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_cc"; i ++; }  fieldValue = msgCompFields.GetBcc(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_bcc"; i ++; }  fieldValue = msgCompFields.GetReplyTo(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_reply"; i ++; }  fieldValue = msgCompFields.GetOtherRandomHeaders(); if (fieldValue != "") { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_other"; i ++; }  fieldValue = msgCompFields.GetNewsgroups(); if (fieldValue != "" && i <= MAX_RECIPIENTS) { document.getElementById("msgRecipient#" + i).value = fieldValue; document.getElementById("msgRecipientType#" + i).value = "addr_newsgroups"; i ++; } 
add: var row = 1; 
context: function CompFields2Recipients(msgCompFields){	if (msgCompFields)	{		var i = 1;		var fieldValue = msgCompFields.GetTo();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_to";			i ++;		}		fieldValue = msgCompFields.GetCc();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_cc";			i ++;		}		fieldValue = msgCompFields.GetBcc();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_bcc";			i ++;		}				fieldValue = msgCompFields.GetReplyTo();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_reply";			i ++;		}				fieldValue = msgCompFields.GetOtherRandomHeaders();		if (fieldValue != "")		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_other";			i ++;		}				fieldValue = msgCompFields.GetNewsgroups();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_newsgroups";			i ++;		}				fieldValue = msgCompFields.GetFollowupTo();		if (fieldValue != "" && i <= MAX_RECIPIENTS)		{			document.getElementById("msgRecipient#" + i).value = fieldValue;			document.getElementById("msgRecipientType#" + i).value = "addr_followup";			i ++;		}				for (; i <= MAX_RECIPIENTS; i++) 		{ 			document.getElementById("msgRecipient#" + i).value = ""; 			document.getElementById("msgRecipientType#" + i).value = "addrTo"; 		}	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7ec091056eabb2f280c0290702be8a2f248633c3/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js