add: gNeverEncrypt.setAttribute("disabled", true); 
context: function onInit() {  // initialize all of our elements based on the current identity values....  gEncryptionCertName = document.getElementById("identity.encryption_cert_name");  gHiddenEncryptionPolicy = document.getElementById("identity.encryptionpolicy");  gEncryptionChoices = document.getElementById("encryptionChoices");  gSignCertName       = document.getElementById("identity.signing_cert_name");  gSignMessages       = document.getElementById("identity.sign_mail");  gEncryptionCertName.value = gIdentity.getUnicharAttribute("encryption_cert_name");  var selectedItemId = null;  var encryptionPolicy = gIdentity.getIntAttribute("encryptionpolicy");  switch (encryptionPolicy)  {    case 1:      selectedItemId = 'encrypt_mail_if_possible';      break;    case 2:      selectedItemId = 'encrypt_mail_always';      break;    default:      selectedItemId = 'encrypt_mail_never';      break;  }  gEncryptionChoices.selectedItem = document.getElementById(selectedItemId);      if (!gEncryptionCertName.value)  {    gEncryptAlways.setAttribute("disabled", true);  }  // we currently don't support encrypt if possible so keep it disabled for now...  document.getElementById('encrypt_mail_if_possible').setAttribute("disabled", true);  gSignCertName.value = gIdentity.getUnicharAttribute("signing_cert_name");  gSignMessages.checked = gIdentity.getBoolAttribute("sign_mail");  if (!gSignCertName.value)  {    gSignMessages.setAttribute("disabled", true);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f9a7f24be9781ac73babe562e8276205d7eb5b70/am-smime.js/buggy/mailnews/extensions/smime/resources/content/am-smime.js