function OpenPic(file,x,y)
{
	var left = (window.screen.width - x)/2;
	var top = (window.screen.height - y)/2;

	var x = x + 2;
	
	window.open("pics/"+file+".html",'','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width='+x+',height='+y+',top='+top+',left='+left);
}