function switchImg(i){ document.images["mug"].src = i; }