rem: if (receiptSend && (receiptSend.getAttribute("value") == "false")) { notInToCcPref.setAttribute("disabled", "true"); notInToCcLabel.setAttribute("disabled", "true"); outsideDomainPref.setAttribute("disabled", "true"); outsideDomainLabel.setAttribute("disabled", "true"); otherCasesPref.setAttribute("disabled", "true"); otherCasesLabel.setAttribute("disabled", "true"); } else { notInToCcPref.removeAttribute("disabled"); notInToCcLabel.removeAttribute("disabled"); outsideDomainPref.removeAttribute("disabled"); outsideDomainLabel.removeAttribute("disabled"); otherCasesPref.removeAttribute("disabled"); otherCasesLabel.removeAttribute("disabled"); } 
add: var prefWindow = parent.hPrefWindow; var notInToCcLocked = prefWindow.getPrefIsLocked("mail.mdn.report.not_in_to_cc"); var outsideDomainLocked = prefWindow.getPrefIsLocked("mail.mdn.report.outside_domain"); var otherCasesLocked = prefWindow.getPrefIsLocked("mail.mdn.report.other");  var disableAll = receiptSend && (receiptSend.getAttribute("value") == "false"); notInToCcPref.disabled = disableAll || notInToCcLocked; notInToCcLabel.disabled = disableAll; outsideDomainPref.disabled = disableAll || outsideDomainLocked; outsideDomainLabel.disabled = disableAll; otherCasesPref.disabled = disableAll || otherCasesLocked; otherCasesLabel.disabled = disableAll; 
context: function EnableDisableAllowedReceipts() {  if (receiptSend && (receiptSend.getAttribute("value") == "false")) {    notInToCcPref.setAttribute("disabled", "true");    notInToCcLabel.setAttribute("disabled", "true");    outsideDomainPref.setAttribute("disabled", "true");    outsideDomainLabel.setAttribute("disabled", "true");    otherCasesPref.setAttribute("disabled", "true");    otherCasesLabel.setAttribute("disabled", "true");  }  else {    notInToCcPref.removeAttribute("disabled");    notInToCcLabel.removeAttribute("disabled");    outsideDomainPref.removeAttribute("disabled");    outsideDomainLabel.removeAttribute("disabled");    otherCasesPref.removeAttribute("disabled");    otherCasesLabel.removeAttribute("disabled");  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/409cbe7e5f3c85951b477471fbb22711fc879e3f/pref-receipts.js/clean/mailnews/base/prefs/resources/content/pref-receipts.js