rem: switch (cvPrefs.nameColumn) { case kFirstNameFirst: name = card.firstName + separator + card.lastName; break; case kLastNameFirst: name = card.lastName + separator + card.firstName; break; case kDisplayName: default: name = card.displayName; break; }  var cardTitle = card.name; var nameHeader = name;  if ( !nameHeader ) nameHeader = zName;  var data = top.cvData; var visible;    cvSetNode(data.CardTitle, gAddressBookBundle.getFormattedString("viewCardTitle", [ cardTitle]));   cvSetNode(data.cvhName, nameHeader); cvSetNodeWithLabel(data.cvNickname, zNickname, card.nickName); cvSetNodeWithLabel(data.cvDisplayName, zDisplayName, card.displayName);  visible = HandleLink(data.cvEmail1, card.primaryEmail, data.cvEmail1Box, "mailto:") || visible;  visible = HandleLink(data.cvEmail2, card.secondEmail, data.cvEmail2Box, "mailto:") || visible; 
add: visible = HandleLink(data.cvEmail2, card.secondEmail, data.cvEmail2Box, "mailto:" + card.secondEmail) || 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 )	{    // get seperator for display format "First Last"    if ( cvPrefs.nameColumn == kFirstNameFirst ) {		 	separator = cvPrefs.firstLastSeparator;	}    // for seperator all other display formats    else {      separator = cvPrefs.lastFirstSeparator;    }  }  switch (cvPrefs.nameColumn) {     case kFirstNameFirst:		name = card.firstName + separator + card.lastName;      break;    case kLastNameFirst:       name = card.lastName + separator + card.firstName;      break;    case kDisplayName:    default:      name = card.displayName;      break;  }	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);        visible = HandleLink(data.cvEmail1, card.primaryEmail, data.cvEmail1Box, "mailto:") || visible;        visible = HandleLink(data.cvEmail2, card.secondEmail, data.cvEmail2Box, "mailto:") || visible;	// 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;        visible = HandleLink(data.cvHomeWebPage, card.webPage2, data.cvHomeWebPageBox, "") || 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;        visible = HandleLink(data.cvWorkWebPage, card.webPage1, data.cvWorkWebPageBox, "") || 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/d08d4d3f9753b01573c0820f3dc3010c62295d11/abCardViewOverlay.js/buggy/mailnews/addrbook/resources/content/abCardViewOverlay.js