add:  var checked = document.getElementById("purge").checked; document.getElementById("purge").disabled = !enabled; document.getElementById("purgeInterval").disabled = !enabled || !checked; document.getElementById("purgeLabel").disabled = !enabled || !checked; 
context: function conditionallyEnableUI(id){  var enabled;  if (!id || id == "level") {    enabled = document.getElementById("level").checked;    dump("XXX enabled = " + enabled + "\n");  }  if (!id || id == "moveOnSpam") {    enabled = document.getElementById("moveOnSpam").checked;    document.getElementById("moveTargetMode").disabled = !enabled;    var choice = document.getElementById("moveTargetMode").selectedItem.getAttribute("value");     document.getElementById("actionTargetAccount").disabled = !enabled || (choice == 1);    document.getElementById("actionTargetFolder").disabled = !enabled || (choice == 0);  }  if (!id || id == "purge") {    enabled = document.getElementById("purge").checked;    document.getElementById("purgeInterval").disabled = !enabled;    document.getElementById("purgeLabel").disabled = !enabled;  }  if (!id || id == "useWhiteList") {    enabled = document.getElementById("useWhiteList").checked;    document.getElementById("whiteListAbURI").disabled = !enabled;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/30aecba90d55682527f850dbce68dc19545f91ef/junkMail.js/clean/mailnews/base/resources/content/junkMail.js