function Open_Photo(theURL,title,x,y) {
	vyska = screen.height;
	sirka = screen.width;
	var levy = (sirka - x)/2;
	var horni = (vyska - y)/2;
	popup = window.open(theURL,"foto","width="+x+",height="+y+",left="+levy+",top="+horni);
	popup.document.open();
	popup.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><title>'+title+'</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	popup.document.write('<img onclick="window.close()" alt="'+title+'" src="'+theURL+'">');
	popup.document.write('</body></html>');
	popup.document.close();
	popup.moveTo( ((screen.availWidth-x)/2),((screen.availHeight-y)/2) );
	popup.focus();
}
