rem: var treeChildren = document.getElementById("smtpTreeChildren");  
context: function refreshServerList(){    // save selection    var oldSelectedIds = new Array;    serverList.clearSelection();    var selectedItems = serverList.selectedItems;    for (var i=0; i< selectedItems.length; i++)        oldSelectedIds[i] = selectedItems[0].id;    var treeChildren = document.getElementById("smtpTreeChildren");    // remove all children    while (treeChildren.hasChildNodes())        treeChildren.removeChild(treeChildren.lastChild);    var defaultServer = smtpService.defaultServer;    fillSmtpServers(treeChildren,smtpService.smtpServers, defaultServer);    // restore selection    for (i=0; i< oldSelectedIds.length; i++) {        var element = document.getElementById(oldSelectedIds[i]);        if (element)            serverList.selectItem(element);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/SmtpServerList.js/buggy/mailnews/base/prefs/resources/content/SmtpServerList.js