1: 2:
var vara="/EquipmentPhotos/pic" + equipmentid + ".jpg"; document.getElementById('EquipPhoto').setAttribute('src',vara);