rem: var isSecureSelected = document.getElementById("server.isSecure").checked; 
add: var isSecureSelected; if (document.getElementById("server.isSecure").hidden == true)  isSecureSelected = document.getElementById("server.socketType").value == 3; else isSecureSelected = document.getElementById("server.isSecure").checked; 
context: function initServerType() {  var serverType = document.getElementById("server.type").getAttribute("value");    var propertyName = "serverType-" + serverType;  var messengerBundle = document.getElementById("bundle_messenger");  var verboseName = messengerBundle.getString(propertyName);  setDivText("servertype.verbose", verboseName);   var isSecureSelected = document.getElementById("server.isSecure").checked;  var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + serverType].getService(Components.interfaces.nsIMsgProtocolInfo);  document.getElementById("defaultPort").value = protocolInfo.getDefaultServerPort(isSecureSelected);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/75459e1ddffbc8f60cc2531bde98fc04c2748b1a/am-server.js/buggy/mailnews/base/prefs/resources/content/am-server.js