add: var elements = []; if (server.trySSL != "") elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL); if (elements.length == 0) elements = gSmtpTrySSL.getElementsByAttribute("data", "1"); gSmtpTrySSL.selectedItem = elements[0]; 
context: function initSmtpSettings(server) {    gSmtpUsername = document.getElementById("smtp.username");    gSmtpUsernameLabel = document.getElementById("smtpusernamelabel");    gSmtpHostname = document.getElementById("smtp.hostname");    gSmtpUseUsername = document.getElementById("smtp.useUsername");    gSmtpAuthMethod = document.getElementById("smtp.authMethod");        if (server) {        gSmtpHostname.value = server.hostname;        gSmtpUsername.value = server.username;        gSmtpAuthMethod.setAttribute("value", server.authMethod);        // radio groups not implemented        //document.getElementById("smtp.trySSL").value = server.trySSL;    }    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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7754a29d29fdcc476565f436a9c1f6800db9c5d5/smtpEditOverlay.js/clean/mailnews/base/prefs/resources/content/smtpEditOverlay.js