    function changer(from,to) {
    if(document.images) {
    document.images[from].src = pics[to].src;
    }
  }