context: function DisplayCardViewPane(abNode){	var uri = abNode.getAttribute('id');	var cardResource = top.rdf.GetResource(uri);	var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);		// FIX ME - this should use a i18n name routine in JS	var name = card.displayName;	if ( card.firstName.length + card.lastName.length > 0 )		name = card.firstName + " " + card.lastName;		var nickname;	if ( card.nickName )		nickname = "\"" + card.nickName + "\"";			var data = top.cvData;	var visible;		// set fields in card view pane	cvSetNode(data.CardTitle, "Card for " + card.displayName);		// Name section	cvSetNode(data.cvhName, name);	cvSetNode(data.cvNickname, nickname);	cvSetNode(data.cvEmail1, card.primaryEmail);	cvSetNode(data.cvEmail2, card.secondEmail);	// Home section	visible = cvSetNode(data.cvHomeAddress, card.homeAddress);	visible = cvSetNode(data.cvHomeAddress2, card.homeAddress2) || visible;	visible = cvSetCityStateZip(data.cvHomeCityStZip, card.homeCity, card.homeState, card.homeZipCode) || visible;	visible = cvSetNode(data.cvHomeCountry, card.homeCountry) || visible;	cvSetVisible(data.cvhHome, visible);	cvSetVisible(data.cvbHome, visible);	// Other section	visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.custom1);	visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.custom2) || visible;	visible = cvSetNodeWithLabel(data.cvCustom3, zCustom3, card.custom3) || visible;	visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.custom4) || visible;	visible = cvSetNode(data.cvNotes, card.notes) || visible;	cvSetVisible(data.cvhOther, visible);	cvSetVisible(data.cvbOther, visible);	// Phone section	visible = cvSetNodeWithLabel(data.cvPhWork, zWork, card.workPhone);	visible = cvSetNodeWithLabel(data.cvPhHome, zHome, card.homePhone) || visible;	visible = cvSetNodeWithLabel(data.cvPhFax, zFax, card.faxNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhCellular, zCellular, card.cellularNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhPager, zPager, card.pagerNumber) || visible;	cvSetVisible(data.cvhPhone, visible);	cvSetVisible(data.cvbPhone, visible);	// Work section	visible = cvSetNode(data.cvJobTitle, card.jobTitle);	visible = cvSetNode(data.cvDepartment, card.department) || visible;	visible = cvSetNode(data.cvCompany, card.company) || visible;	visible = cvSetNode(data.cvWorkAddress, card.workAddress) || visible;	visible = cvSetNode(data.cvWorkAddress2, card.workAddress2) || visible;	visible = cvSetCityStateZip(data.cvWorkCityStZip, card.workCity, card.workState, card.workZipCode) || visible;	visible = cvSetNode(data.cvWorkCountry, card.workCountry) || visible;	cvSetVisible(data.cvhWork, visible);	cvSetVisible(data.cvbWork, visible);	// make the card view box visible	cvSetVisible(top.cvData.CardViewBox, true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7570cde6f9bfa5dd46e8e0d1d4f7707b534c2bb5/abCardViewOverlay.js/clean/mailnews/addrbook/resources/content/abCardViewOverlay.js