rem: if ( select && select.length == 1 ) { select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(popupValue)]; select[0].setAttribute("id", "msgRecipientType#" + top.MAX_RECIPIENTS); if (input) _awDisableAutoComplete(select[0], input[0]); } 
add:  if (input && input.length == 1 && select && select.length == 1) awSetInputAndPopupValue(input[0], inputValue, select[0], popupValue, top.MAX_RECIPIENTS) 
context: function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){	// remove leading spaces	while (inputValue[0] == " " )		inputValue = inputValue.substring(1, inputValue.length);	    top.MAX_RECIPIENTS++;    var newNode = templateNode.cloneNode(true);    parentNode.appendChild(newNode); // we need to insert the new node before we set the value of the select element!    var input = newNode.getElementsByTagName(awInputElementName());    if ( input && input.length == 1 )    {	    input[0].setAttribute("value", inputValue);	    input[0].value = inputValue;	    input[0].setAttribute("id", "msgRecipient#" + top.MAX_RECIPIENTS);	}    var select = newNode.getElementsByTagName(awSelectElementName());    if ( select && select.length == 1 )    {        select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(popupValue)];	    select[0].setAttribute("id", "msgRecipientType#" + top.MAX_RECIPIENTS);	    if (input)            _awDisableAutoComplete(select[0], input[0]);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a8dd3e401b4d797d898cd5a194deb638eb7bfed5/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js