function viewPicture(pic, width, height)
{
	if ((document.body.clientWidth < width) || (document.body.clientHeight < height))
	{
		if (document.body.clientWidth >= width) width = width + 20;
		if (document.body.clientWidth < width) width = document.body.clientWidth;
		if (document.body.clientHeight < height) height = document.body.clientHeight;
		autoScroll = 'yes';
	}
	else
	{
		autoScroll = 'no';
	}
	posLeft = parseInt(screen.width / 2 - width / 2);
	posTop = parseInt(screen.height / 2 - height / 2);
	window.open(pic,'abig','top='+posTop+',left='+posLeft+',toolbar=no,scrollbars='+autoScroll+',directories=no,status=no,menubar=no,resizable=no,width='+width+',height='+height);
}
