rem: dump("serverList.selectedItem = " + document.getElementById("smtpPopup").getAttribute("selectedKey") + "\n"); 
add:  var selectedServerElement = serverList.selectedItem; dump("selectedServerKey: " + selectedServerElement + "\n");  var key = selectedServerElement.getAttribute("key"); if (key) window.arguments[0].smtpServerKey = key; else window.arguments[0].smtpServerKey = null;  
context: function onOk(){    dump("serverList.selectedItem = " + document.getElementById("smtpPopup").getAttribute("selectedKey") + "\n");    window.close();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/49cb68986d41d169b640ed73301f70112b205e74/am-identity-advanced.js/buggy/mailnews/base/prefs/resources/content/am-identity-advanced.js