﻿function selectImage(imageControl, imageURL, imgTableCaption, imgTableDate, imgTablePhotographer, imgTableCopyright, imageCaption, imageDate, imageBy, imageCopyright)
{
if (imageDate != '')
{
    imageDate = 'Date:&nbsp;' + imageDate;
}
if (imageBy != '')
{
    imageBy = 'Photographer:&nbsp;' + imageBy;
}

document.getElementById(imageControl).src = imageURL;
document.getElementById(imgTableCaption).innerHTML = imageCaption;
document.getElementById(imgTableDate).innerHTML = imageDate;
document.getElementById(imgTablePhotographer).innerHTML = imageBy;
document.getElementById(imgTableCopyright).innerHTML = imageCopyright;
}

