// JavaScript Document
function updateImage(imageName, imagePath) {
   document.images[imageName].src = imagePath;
}