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