
function viewPicture(imageName,imageWidth,imageHeight,alt) {
	var top = screen.height/2 - imageHeight/2;
	var left = screen.width/2 - imageWidth/2;

	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+left+",top="+top);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" OnClick="self.close()" />');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

