rem: ac.autoComplete(inputElement, inputElement.value, AddressAutoCompleteListener); 
add: if (!identityElement) identityElement = document.getElementById("msgIdentity");  var identity=null;  if (identityElement) { idKey = identityElement.value; identity = accountManager.getIdentity(idKey); }  ac.autoComplete(identity, inputElement, inputElement.value, AddressAutoCompleteListener); 
context: function AutoCompleteAddress(inputElement){	///////////// (select_doc_id, doc_id)	dump("inputElement = " + inputElement + "\n");	var row = awGetRowByInputElement(inputElement);	    var select = awGetPopupElement(row);		dump("select = " + select + "\n");	dump("select.value = " + select.value + "\n");		if (select.value == "") 		return;	if (select.value == "addr_newsgroups") {		dump("don't autocomplete, it's a newsgroup");		return;	}		var ac = Components.classes['component://netscape/messenger/autocomplete&type=addrbook'];	if (ac) {		ac = ac.getService();	}       	if (ac) {		ac = ac.QueryInterface(Components.interfaces.nsIAutoCompleteSession);	}	ac.autoComplete(inputElement, inputElement.value, AddressAutoCompleteListener);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/49dee0901af9299d58e82b9270e15fe47dfe403a/addressAutoComplete.js/buggy/mailnews/compose/resources/content/addressAutoComplete.js