function viewImage(imageDivId)
{
	// Turn visibility/display off for all the other divs of class largeImage
	var divs = parent.document.getElementsByTagName("div");
	var searchRegex = /largeImage/i;
	for (var i = 0; i < divs.length; i++)
		if (-1 != divs[i].className.search(searchRegex)) // If div has class "largeImage"
		{
			divs[i].style.visibility = 'hidden';
			divs[i].style.display = 'none';
		}

	// Turn visibility/display on for the div with imageDivId
	var imageDiv = parent.document.getElementById(imageDivId);
	imageDiv.style.visibility = 'visible';
	imageDiv.style.display = 'block';
}