function swapImg(sImgName,sImgSrc) { document.images[sImgName].src = sImgSrc; }