add:   if (directory.isRemote) document.getElementById('allowRemoteContent').hidden = true; 
context: function OnLoadEditCard(){  InitEditCard();  gEditCard.titleProperty = "editCardTitle";  if (window.arguments && window.arguments[0])  {    if ( window.arguments[0].card )      gEditCard.card = window.arguments[0].card;    if ( window.arguments[0].okCallback )      gOkCallback = window.arguments[0].okCallback;    if ( window.arguments[0].abURI )      gEditCard.abURI = window.arguments[0].abURI;  }  // set global state variables  // if first or last name entered, disable generateDisplayName  if (gEditCard.generateDisplayName &&      (gEditCard.card.firstName.length +       gEditCard.card.lastName.length +       gEditCard.card.displayName.length > 0))  {    gEditCard.generateDisplayName = false;  }  GetCardValues(gEditCard.card, document);  SetCardDialogTitle(gEditCard.card.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))       {        // Set all the editable vcard fields to read only        for (var i = kVcardFields.length; i-- > 0; )          document.getElementById(kVcardFields[i][0]).readonly = true;        // And the phonetic fields        document.getElementById(kPhoneticFields[0]).readonly = true;        document.getElementById(kPhoneticFields[3]).readonly = true;        // Also disable the mail format popup.        document.getElementById("PreferMailFormatPopup").disabled = true;        document.documentElement.buttons = "accept";        document.documentElement.removeAttribute("ondialogaccept");      }    }  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/9879f70fcb5f5d0f8a02d594f4b00e333cb7b802/abCardOverlay.js/buggy/mail/components/addrbook/content/abCardOverlay.js