function moveOptions(from_box,to_box) {
	for(var c=(from_box.options.length - 1);c>=0;c--) {
      if(from_box.options[c].selected) {
        addOption(from_box.options[c].text,from_box.options[c].value,to_box);
        from_box.options[c] = null;
      }
    }
  }

function chOrder(box,direction) {
  if(direction > 0 && box.selectedIndex < (box.length -1) || box.selectedIndex > 0 && direction < 0) {
    var newindex = box.selectedIndex + direction;
    var oldindex = box.selectedIndex
    var thisopt = new Option(box.options[oldindex].text,box.options[oldindex].value);
      box.options[oldindex] = new Option(box.options[newindex].text,box.options[newindex].value);
      box.options[newindex] = thisopt;
      box.options[oldindex].selected = false;
      box.options[newindex].selected = true;
    }
  }

