function ViewPic(URL)
{
	var loading = document.getElementById('loading');
	var picture = document.getElementById('pic');
	
	if (document.images)
	{
		loading.innerHTML = '<img src="images/load.gif">Loading image... Please wait.';
		
		var image = new Image();
		image.src = URL;
			
		image.onload = function()
		{
			picture.src = URL;
			loading.innerHTML = '';
		}
	}
	else
	{
		return true; // An old browser is beign used.
	}
	return false;
}

