function swapPhoto(baseNo,photoSRC,thecaption) {
if (document.getElementById) {
  var thisCaption = "caption" + baseNo;
  var thisImage = "imgPhoto" + baseNo;
 
document.getElementById(thisCaption).firstChild.nodeValue=thecaption;
 
document.getElementById(thisImage).src="http://www.ironmammoth.co.uk/images/"+photoSRC; return false;
 }
}
