function exh_popImage(load, sizex, sizey) {
var x = (sizex ? sizex : 400);
var y = (sizey ? sizey : 300);
	posx = ((screen.width/2)-(x/2));
	posy =((screen.height/2)-(y/2));
	noweOkno = window.open('','noweOkno','resizable=no,location=no,status=no,menubar=no,toolbar=no,scrollbars=0,width='+x+',height='+y);
	noweOkno.moveTo(posx,posy);
	noweOkno.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\" lang=\"pl\" xml:lang=\"pl\"><head><title>Powiększenie</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /></head><body style=\"margin: 0px;\" title=\"Kliknij, by zamknąć to okienko\" onclick=\"window.close(); return true;\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td><img alt=\" \" src='+load+'></img></td></tr></tbody></table></body></html>');
	noweOkno.focus();
}

/*function mapa(load,x,y) {
    y+=30;
	posx = ((screen.width/2)-(x/2));
	posy =((screen.height/2)-(y/2));
	noweOkno = window.open(load,'noweOkno','resizible=no,location=no,status=0,menubar=0,toolbar=0,scrollbars=0,width='+x+',height='+y);
	noweOkno.moveTo(posx,posy);
	noweOkno.document.write('<html><head><title></title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 bgcolor=\"#3c617c\">\n<table border=0 cellpadding=0 cellspacing=0><tr>\n<td><img src='+load+' onclick=\"window.close(); return true;\"></td>\n</tr><tr>\n<td align="center"><a href=\"#\" onclick=\"window.print();\"><img src=\"/wp-content/themes/gelg/img/print.gif\" border=\"0\" align=\"center\"></a></td>\n</tr></table>\n</body>\n</html>');
	
}*/

function mapa(load,x,y) {
    y+=30;
	posx = ((screen.width/2)-(x/2));
	posy =((screen.height/2)-(y/2));
	noweOkno = window.open(load,'mapa','resizible=no,location=no,status=0,menubar=0,toolbar=0,scrollbars=0,width='+x+',height='+y);
	noweOkno.moveTo(posx,posy);	
}

function popupWindow(url) {
     window.open(url,'popupWindow','width=1000,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,top=0,left=0');
	}


