function PIC(url, width, height) {
	var x = (screen.availWidth-width)/2;
	var y = (screen.availHeight-28-height)/2;
	var v = (screen.availHeight);
	var win_Width = width;
	var win_Height = height;
	var scroll = 0;
	if (height > v) {
		scroll = 1;
		win_Height = screen.availHeight-28;
		y = 0;
		win_Width = width + 16;
	}
	var popupWin = window.open("", "_blank", 'scrollbars='+scroll+',resizable=0,top=0,left=0,menubar=0,status=0,width='+win_Width+',height='+win_Height+',left='+x+',top='+y);
	popupWin.document.writeln("<html>\n<head>\n<title>Fotogalerie</title>\n</head>");
	popupWin.document.writeln("<body leftmargin=0 rightmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
	popupWin.document.writeln("<img src=\"" + url +"\" width=\"" + width +"\" height=\"" + height +"\" onclick=\"window.close()\" style=\"cursor:hand\">");
	popupWin.document.writeln("</body></html>");
	popupWin.focus();
}
