function chImg(img, str) {
  document.images[img].src = str;
} 