rem: /* todo:  mscott says there was a pref in 4.5 that would */ /* cause GenerateDisplayName() to do nothing.  */ /* the i18N people need it. */ /* find the pref and heed it. */  /* trying to be smart about no using the first last sep */ /* if first or last is missing */ /* todo:  is this i18N safe? */  
context: function GenerateDisplayName(){	if ( editCard.generateDisplayName )	{		var displayName;				var firstNameField = document.getElementById('FirstName');		var lastNameField = document.getElementById('LastName');		var displayNameField = document.getElementById('DisplayName');		/* todo: i18N work todo here */		/* this used to be XP_GetString(MK_ADDR_FIRST_LAST_SEP) */				/* todo:  mscott says there was a pref in 4.5 that would */		/* cause GenerateDisplayName() to do nothing.  */		/* the i18N people need it. */		/* find the pref and heed it. */		/* trying to be smart about no using the first last sep */		/* if first or last is missing */		/* todo:  is this i18N safe? */				var separator = "";		if ( lastNameField.value && firstNameField.value )		{			if ( editCard.displayLastNameFirst )			 	separator = editCardLastFirstSeparator;			else			 	separator = editCardFirstLastSeparator;		}				if ( editCard.displayLastNameFirst )			displayName = lastNameField.value + separator + firstNameField.value;		else			displayName = firstNameField.value + separator + lastNameField.value;					displayNameField.value = displayName;		top.window.title = editCard.titlePrefix + displayName;	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4b27cbbd0c9e490f09e2586f8673f1958981a49e/abCardOverlay.js/clean/mailnews/addrbook/resources/content/abCardOverlay.js