function gzoom( image, xwidth, xheight)
{
iMyWidth = (window.screen.width - xwidth ) / 2 ;
iMyHeight = (window.screen.height - xheight ) / 2;
xwidth = xwidth + 7;
xheight = xheight + 7;

openerdue = window.open("", "opener","height="+xheight+",width="+xwidth+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no, toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes");
openerdue.document.write("<HTML><head>");
openerdue.document.write("<title>Preview</title>");
openerdue.document.write("</head>");
openerdue.document.write("<BODY style='margin: 0; padding: 3px;' BGCOLOR=black TEXT=000000>");
openerdue.document.write("<a href=\"javascript: parent.close()\" &gt;Zavřít okno><IMG HSPACE=0 BORDER=0 VSPACE=0 SRC='"+image+"' alt='Zavřít okno'></a>");
openerdue.document.write("</BODY>");
openerdue.document.write("</HTML>");
openerdue.document.close();
}

function popupgal(jazyk,prefix,web_root)
{
	xwidth=350;
	xheight=350;
	iMyWidth = (window.screen.width - xwidth ) / 2 ;
	iMyHeight = (window.screen.height - xheight ) / 2;
	openerdue = window.open(web_root+"modules/galerie/formadmin.php?lang="+jazyk+"&web="+prefix,"opener","height="+xheight+",width="+xwidth+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=auto, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,directories=no,resizable=yes");
	return false;
}
function popupgal2(jazyk,prefix,web_root,polozka)
{
	xwidth=350;
	xheight=350;
	iMyWidth = (window.screen.width - xwidth ) / 2 ;
	iMyHeight = (window.screen.height - xheight ) / 2;
	openerdue = window.open(web_root+"modules/galerie/formaddedit.php?lang="+jazyk+"&web="+prefix+"&polozka="+prefix,"opener","height="+xheight+",width="+xwidth+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=auto, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,directories=no,resizable=yes");
	return false;
}
function smaz(polozka)
{
	return confirm(text_delete1+polozka+text_delete2);
}