rem: var ac = Components.classes['component: 
add: var ac = Components.classes['@mozilla.org/messenger/autocomplete;1?type=addrbook']; 
context: function AutoCompleteAddress(inputElement){	///////////// (select_doc_id, doc_id)	dump("inputElement = " + inputElement + "\n");	//Do we really have to autocomplete?	if (inputElement.lastValue && inputElement.lastValue == inputElement.value)		return;	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.nsIAbAutoCompleteSession);	}    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);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/addressAutoComplete.js/buggy/mailnews/compose/resources/content/addressAutoComplete.js