rem:  if (setFocus && input[0] ) awSetFocus(top.MAX_RECIPIENTS, input[0]); } 
add:  if (setFocus && input[0] ) awSetFocus(top.MAX_RECIPIENTS, input[0]); } 
context: function awAppendNewRow(setFocus){	var body = document.getElementById('addressWidgetBody');	var treeitem1 = awGetTreeItem(1);		if ( body && treeitem1 )	{	    var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data");    var nextDummy = awGetNextDummyRow();		var newNode = awCopyNode(treeitem1, body, nextDummy);    if (nextDummy) body.removeChild(nextDummy);    		top.MAX_RECIPIENTS++;        var input = newNode.getElementsByTagName(awInputElementName());        if ( input && input.length == 1 )        {   			  input[0].setAttribute("value", "");    	    input[0].setAttribute("id", "msgRecipient#" + top.MAX_RECIPIENTS);                    // We always clone the first row.  The problem is that the first row          // could be focused.  When we clone that row, we end up with a cloned          // XUL textbox that has a focused attribute set.  Therefore we think          // we're focused and don't properly refocus.  The best solution to this          // would be to clone a template row that didn't really have any presentation,          // rather than using the real visible first row of the tree.          //          // For now we'll just put in a hack that ensures the focused attribute          // is never copied when the node is cloned.          if (input[0].getAttribute('focused') != '')            input[0].removeAttribute('focused');    	  }        var select = newNode.getElementsByTagName(awSelectElementName());        if ( select && select.length == 1 )        {            select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(lastRecipientType)];    	    select[0].setAttribute("id", "msgRecipientType#" + top.MAX_RECIPIENTS);    	    if (input)            _awSetAutoComplete(select[0], input[0]);    	}		// focus on new input widget		if (setFocus && input[0] )			awSetFocus(top.MAX_RECIPIENTS, input[0]);	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js