rem: tree.selectItem(nextNode) 
add: listbox.selectItem(nextNode) 
context: function RemoveActiveCharset(){  var active_charsets_treeroot = document.getElementById('active_charsets_root');  var tree = document.getElementById('active_charsets');  var nextNode = null;  var numSelected = tree.selectedItems.length;  var deleted_all = false;  while (tree.selectedItems.length > 0) {    var selectedNode = tree.selectedItems[0];    nextNode = selectedNode.nextSibling;    if (!nextNode) {      if (selectedNode.previousSibling)        nextNode = selectedNode.previousSibling;    }    var row  =  selectedNode.firstChild;    var cell =  row.firstChild;    row.removeChild(cell);    selectedNode.removeChild(row);    active_charsets_treeroot.removeChild(selectedNode);  } //while  if (nextNode) {    tree.selectItem(nextNode)  } else {    //tree.clearSelection();  }  enable_save();} //RemoveActiveCharset
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1e2d5d9ba4147d5ea3cc58789a6ba7f2426d0695/pref-charset.js/clean/suite/common/pref/pref-charset.js