rem: gEncryptIfPossible  =  document.getElementById("identity.encrypt_mail_if_possible"); gEncryptAlways      = document.getElementById("identity.encrypt_mail_always"); 
add: gHiddenEncryptionPolicy = document.getElementById("identity.encryptionpolicy"); gEncryptionChoices = document.getElementById("encryptionChoices"); 
context: function onInit() {  // initialize all of our elements based on the current identity values....  gEncryptionCertName = document.getElementById("identity.encryption_cert_name");  gEncryptIfPossible  =  document.getElementById("identity.encrypt_mail_if_possible");  gEncryptAlways      = document.getElementById("identity.encrypt_mail_always");  gSignCertName       = document.getElementById("identity.signing_cert_name");  gSignMessages       = document.getElementById("identity.sign_mail");  gEncryptionCertName.value = gIdentity.getUnicharAttribute("encryption_cert_name");  gEncryptIfPossible.checked = gIdentity.getBoolAttribute("encrypt_mail_if_possible");  gEncryptAlways.checked = gIdentity.getBoolAttribute("encrypt_mail_always");  if (!gEncryptionCertName.value)  {    gEncryptAlways.setAttribute("disabled", true);  }  // we currently don't support encrypt if possible so keep it disabled for now...  gEncryptIfPossible.setAttribute("disabled", true);  gSignCertName.value = gIdentity.getUnicharAttribute("signing_cert_name");  gSignMessages.checked = gIdentity.getBoolAttribute("sign_mail");  if (!gSignCertName.value)  {    gSignMessages.setAttribute("disabled", true);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6a306e27e2e8c96f08ce687f7bc40d18601be290/am-smime.js/clean/mailnews/extensions/smime/resources/content/am-smime.js