rem: var workWebPageVisible = cvSetNode(data.cvWorkWebPage, card.webPage1); visible = workWebPageVisible || visible; data.cvWorkWebPage.setAttribute('href', card.webPage1); cvSetVisible(data.cvWorkWebPageBox, workWebPageVisible); 
add:  visible = HandleLink(data.cvWorkWebPage, card.webPage1, data.cvWorkWebPageBox, "") || visible;  
context: function DisplayCardViewPane(abNode){	var uri = abNode.getAttribute('id');	var cardResource = top.rdf.GetResource(uri);	var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);		// name	var name;	var separator = "";	if ( card.lastName && card.firstName )	{		if ( cvPrefs.displayLastNameFirst )		 	separator = cvPrefs.lastFirstSeparator;		else		 	separator = cvPrefs.firstLastSeparator;	}	if ( cvPrefs.displayLastNameFirst )		name = card.lastName + separator + card.firstName;	else		name = card.firstName + separator + card.lastName;	var cardTitle = card.name;	var nameHeader = name;		if ( !nameHeader )		nameHeader = zName;			var data = top.cvData;	var visible;	// set fields in card view pane	cvSetNode(data.CardTitle, gAddressBookBundle.getFormattedString("viewCardTitle", [ cardTitle]));		// Name section	cvSetNode(data.cvhName, nameHeader);	cvSetNodeWithLabel(data.cvNickname, zNickname, card.nickName);	cvSetNodeWithLabel(data.cvDisplayName, zDisplayName, card.displayName);	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;	var homeWebPageVisible = cvSetNode(data.cvHomeWebPage, card.webPage2);    visible = homeWebPageVisible || visible;	data.cvHomeWebPage.setAttribute('href', card.webPage2);    cvSetVisible(data.cvHomeWebPageBox, homeWebPageVisible);	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;	var workWebPageVisible = cvSetNode(data.cvWorkWebPage, card.webPage1);    visible = workWebPageVisible || visible;	data.cvWorkWebPage.setAttribute('href', card.webPage1);    cvSetVisible(data.cvWorkWebPageBox, workWebPageVisible);	cvSetVisible(data.cvhWork, visible);	cvSetVisible(data.cvbWork, visible);	// make the card view box visible	cvSetVisible(top.cvData.CardViewBox, true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5befe1d32899534399c8be5410412cdae95300cd/abCardViewOverlay.js/buggy/mailnews/addrbook/resources/content/abCardViewOverlay.js