function swapPhoto(photoSRC,theTitle,theCaption) 
	{
	var displayedCaption = document.getElementById("theTitle");
	displayedCaption.firstChild.nodeValue = theTitle;

	var displayedCredit = document.getElementById("theCaption");
	displayedCredit.firstChild.nodeValue = theCaption;

    document.images.imgPhoto.src = "assets/" + photoSRC;
	}