function switchImg(sImg,sSrc,theCaption){
	var displayedCaption = document.getElementById("caption");
	displayedCaption.firstChild.nodeValue = theCaption;
	oImg = document.images[sImg];
	// return true or false based on assignment
	return !(oImg.src = sSrc);
}

// With onkeypress event, this verifies 'Enter' key
function verifyKey(oElement,oEvent){
	if(oEvent.keyCode==13 && oElement.onclick) oElement.onclick();
}