//-------------------------------------------------------------------------------------------
//ShowPhoto()
//-------------------------------------------------------------------------------------------
function ShowPhoto(equipid) {
var vara = "/EquipmentPhotos/pic" + equipid + ".jpg";
document.getElementById('EquipPhoto').setAttribute('src', vara);
$(document).ready(function () {
$("img").error(function () {
$(this).attr("src", "/EquipmentPhotos/pic0.jpg");
});
});
}
|