add:  for (var i=0, node=null; node=listbox.childNodes[i]; i++) { node.index=i; } 
context: function reorderScript(from, to) {  // make sure to and from are in range  if (from < 0 || to < 0 ||    from > config.scripts.length || to > config.scripts.length  ) {    return false;  }  // REORDER CONFIG:  // save item-to-move  var tmp = config.scripts[from];  // remove it  config.scripts.splice(from, 1);  // put it back in the new spot  config.scripts.splice(to, 0, tmp);  // REORDER DISPLAY:  var tmp = listbox.childNodes[from];  listbox.removeChild(tmp);  listbox.insertBefore(tmp, listbox.childNodes[to]);  // then re-select the dropped script  listbox.selectedIndex = to;  return true;}
meta: 4236	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4236/21cce0a72b733bf139b920ffd3c7f0247a099ec0/manage.js/clean/src/chrome/chromeFiles/content/manage.js