rem: var alwaysUseUsername = document.getElementById("smtp.useUsername").checked;  if (alwaysUseUsername) { document.getElementById("smtp.username").removeAttribute("disabled"); document.getElementById("smtp.savePassword").removeAttribute("disabled"); }  else { document.getElementById("smtp.username").setAttribute("disabled", "true"); document.getElementById("smtp.savePassword").setAttribute("disabled", "true"); }  
context: function updateControls() {    dump("Update controls..\n");    var alwaysUseUsername =        document.getElementById("smtp.useUsername").checked;    if (alwaysUseUsername) {        document.getElementById("smtp.username").removeAttribute("disabled");        document.getElementById("smtp.savePassword").removeAttribute("disabled");    }        else {        document.getElementById("smtp.username").setAttribute("disabled", "true");        document.getElementById("smtp.savePassword").setAttribute("disabled", "true");    }    var isSecure =        document.getElementById("smtp.isSecure").checked;    if (isSecure) {        document.getElementById("smtp.alwaysSecure").removeAttribute("disabled");        document.getElementById("smtp.sometimesSecure").removeAttribute("disabled");    }    else {        document.getElementById("smtp.alwaysSecure").setAttribute("disabled", "true");        document.getElementById("smtp.sometimesSecure").setAttribute("disabled", "true");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/81e6dc0900b4b0315dbb1ab0452ac21fd4499498/smtpEditOverlay.js/buggy/mailnews/base/prefs/resources/content/smtpEditOverlay.js