add: onLockPreference(); 
context: function initSmtpSettings(server) {    gSmtpUsername = document.getElementById("smtp.username");    gSmtpUsernameLabel = document.getElementById("smtpusernamelabel");    gSmtpHostname = document.getElementById("smtp.hostname");    gSmtpPort = document.getElementById("smtp.port");    gSmtpUseUsername = document.getElementById("smtp.useUsername");    gSmtpAuthMethod = document.getElementById("smtp.authMethod");    gSmtpTrySSL = document.getElementById("smtp.trySSL");    if (server) {        gSmtpHostname.value = server.hostname;        gSmtpPort.value = server.port ? server.port : "";        gSmtpUsername.value = server.username;        gSmtpAuthMethod.setAttribute("value", server.authMethod);        var elements = gSmtpTrySSL.getElementsByAttribute("value", server.trySSL);        if (elements.length == 0)            elements = gSmtpTrySSL.getElementsByAttribute("value", "1");        gSmtpTrySSL.selectedItem = elements[0];    } else {        gSmtpAuthMethod.setAttribute("value", "1");        gSmtpTrySSL.selectedItem =            gSmtpTrySSL.getElementsByAttribute("value", "1")[0];    }    if (gSmtpAuthMethod.getAttribute("value") == "1")        gSmtpUseUsername.checked = true;    //dump("gSmtpAuthMethod = <" + gSmtpAuthMethod.localName + ">\n");    //dump("gSmtpAuthMethod.value = " + gSmtpAuthMethod.getAttribute("value") + "\n");    onUseUsername(gSmtpUseUsername, false);    updateControls();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5b9ab3f0a4933f47f37d7aef4a0fa88f976350aa/smtpEditOverlay.js/buggy/mailnews/base/prefs/resources/content/smtpEditOverlay.js