rem: uri = selArray[item].getAttribute('id'); 
add: uri = resultsTree.selectedItems[item].getAttribute('id'); 
context: function GetSelectedAddresses(){	var item, uri, rdf, cardResource, card;	var selectedAddresses = "";		var resultsTree = document.getElementById('resultsTree');		rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();	rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	var selArray = resultsTree.getElementsByAttribute('selected', 'true');	if ( selArray && selArray.length )	{		for ( item = 0; item < selArray.length; item++ )		{			uri = selArray[item].getAttribute('id');			cardResource = rdf.GetResource(uri);			card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);			if ( selectedAddresses )				selectedAddresses += ",";			selectedAddresses += "\"" + card.DisplayName + "\" <" + card.PrimaryEmail + ">";		}	}	dump("selectedAddresses = " + selectedAddresses + "\n");	return selectedAddresses;	}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c8e44cb267df44e5d410235a9945f567d0c78080/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js