function SwapImg(id, file){
var el = document.getElementById(id);
el.src="images/"+file;
}

