rem: var oldSmtpServer = null; var arg = {result: false, smtpServer: oldSmtpServer }; 
add: var serverKeyElement = document.getElementById("identity.smtpServerKey"); var oldSmtpServerKey = serverKeyElement.getAttribute("value"); dump("selected key = " + oldSmtpServerKey + "\n"); var arg = { smtpServerKey: oldSmtpServerKey }; 
context: function onAdvanced(){    dump("onAdvanced..\n");    var oldSmtpServer = null; // where will I get this from?    var arg = {result: false,               smtpServer: oldSmtpServer };    window.openDialog('am-identity-advanced.xul','smtpadvanced',                      'modal,chrome', arg);        if (arg.result && arg.smtpServer != oldSmtpServer) {        // save the identity back to the page as a key        document.getElementById("identity.smtpServerKey").value =            arg.smtpServer.key;    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/49cb68986d41d169b640ed73301f70112b205e74/am-main.js/buggy/mailnews/base/prefs/resources/content/am-main.js