var currentphoto = 1;
function changePhoto(id) {
   document.getElementById("photo" + currentphoto).style.display="none";
   document.getElementById("photo" + id).style.display="block";
   currentphoto = id;
}