function updateImage( imageElementID, imageID )
{
	// Get the image display to be swapped and the repository
	var imageDisplay = dojo.byId( imageElementID );
	var nonViewedImages = dojo.dom.getNextSiblingElement( imageDisplay );

	// Remove the old image and place it into the repository
	dojo.dom.prependChild( imageDisplay, nonViewedImages );
	
	// Insert the new image in the main document
	dojo.dom.insertBefore( dojo.byId( '' + imageID ), nonViewedImages );
}
