rem: var displayName = editCard.card.displayName; top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty, [ displayName ]); 
add: SetCardDialogTitle(editCard.card.displayName);  
context: function OnLoadEditCard(){  InitEditCard();  editCard.titleProperty = "editCardTitle";  if (window.arguments && window.arguments[0])  {    if ( window.arguments[0].card )      editCard.card = window.arguments[0].card;    if ( window.arguments[0].okCallback )      gOkCallback = window.arguments[0].okCallback;    if ( window.arguments[0].abURI )      editCard.abURI = window.arguments[0].abURI;  }  // set global state variables  // if first or last name entered, disable generateDisplayName  if ( editCard.generateDisplayName && (editCard.card.firstName.length +                      editCard.card.lastName.length +                      editCard.card.displayName.length > 0) )  {    editCard.generateDisplayName = false;  }  GetCardValues(editCard.card, document);  var displayName = editCard.card.displayName;  top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty,                                                           [ displayName ]);  // check if selectedAB is a writeable  // if not disable all the fields  if ("arguments" in window && window.arguments[0])  {    if ("abURI" in window.arguments[0]) {      var abURI = window.arguments[0].abURI;      var directory = GetDirectoryFromURI(abURI);      if (!(directory.operations & directory.opWrite))       {        var disableElements = document.getElementsByAttribute("disableforreadonly", "true");        for (var i=0; i<disableElements.length; i++)          disableElements[i].setAttribute('disabled', 'true');      }    }  }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/31876f92fc8d9caf8bfce1f844f8edc1bb250f05/abCardOverlay.js/clean/mailnews/addrbook/resources/content/abCardOverlay.js