function SwapImage(id, imageid) { var image = window.document.getElementById(id) image.src = imageid; }