rem: before.parentNode.insertBefore(selected, before); tree.selectItem(selected); tree.ensureElementIsVisible(selected); 
add: listbox.insertBefore(selected, before); listbox.selectItem(selected); listbox.ensureElementIsVisible(selected); 
context: function MoveUp() {  var tree = document.getElementById('active_charsets');  if (tree.selectedItems.length == 1) {    var selected = tree.selectedItems[0];    var before = selected.previousSibling    if (before) {      before.parentNode.insertBefore(selected, before);      tree.selectItem(selected);      tree.ensureElementIsVisible(selected);    }  }  enable_save();} //MoveUp
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1e2d5d9ba4147d5ea3cc58789a6ba7f2426d0695/pref-charset.js/buggy/suite/common/pref/pref-charset.js