rem: if ( editCard.displayLastNameFirst ) displayName = gAddressBookBundle.getFormattedString("lastFirstFormat",[ lastNameField.value, firstNameField.value ]); else displayName = gAddressBookBundle.getFormattedString("firstLastFormat",[ firstNameField.value, lastNameField.value ]); 
add: displayName = (gEditCard.displayLastNameFirst) ? gAddressBookBundle.getFormattedString("lastFirstFormat", [ lastNameField.value, firstNameField.value ]) : gAddressBookBundle.getFormattedString("firstLastFormat", [ firstNameField.value, lastNameField.value ]); 
context: function GenerateDisplayName(){  if ( editCard.generateDisplayName )  {    var displayName;    var firstNameField = document.getElementById('FirstName');    var lastNameField = document.getElementById('LastName');    var displayNameField = document.getElementById('DisplayName');    if (lastNameField.value && firstNameField.value) {      if ( editCard.displayLastNameFirst )        displayName = gAddressBookBundle.getFormattedString("lastFirstFormat",[ lastNameField.value, firstNameField.value ]);      else        displayName = gAddressBookBundle.getFormattedString("firstLastFormat",[ firstNameField.value, lastNameField.value ]);    }    else {      // one (or both) of these is empty, so this works.      displayName = firstNameField.value + lastNameField.value;    }    displayNameField.value = displayName;    SetCardDialogTitle(displayName);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d07497882c7e39a6ff0d3d7aa349544cb64c9a34/abCardOverlay.js/buggy/mailnews/addrbook/resources/content/abCardOverlay.js