1: 2: 3: 4:
function ShowPhoto(equipid) { var vara = "/EquipmentPhotos/pic" + equipid + ".jpg"; document.getElementById('EquipPhoto').setAttribute('src', vara); }