function OpenPhotoWindow(file, name, width, height)
{
	var top = (screen.height - height)/2;
	var left = (screen.width - width)/2;
	wnd = window.open("photoview.php?file="+file+"&amp;name="+name, name, "scrollbars=no,width="+width+",height="+height);
	wnd.moveTo(left, top);
}
