function yes_no(info,url) {
   odp = confirm(info);
   if (odp == true) {
   	   location.href=url;
	   }
   }

function img_window(img, opis){
	posleft=(window.screen.width/2)-300;
	var pars="height=450,width=640,left="+posleft+",top=50";
	var pop = window.open ("","pop",'toolbar=no,location=no,directories=no,status=no,menubar=no,'+pars+',scrollbars=yes,resizable=yes');
	pop.document.write('<html><head><title>' + opis +'</title></head>');
	pop.document.write('<body bgcolor=#FFFFFF LEFTMARGIN=0 TOPMARGIN="20">');
	pop.document.write('<center><img src="img.php?gfx=' + img +'&w=700" border="0"/><br />');
	pop.document.write('<span style="font-family: sans-serif, Verdana, Helvetica; font-size: 10pt; color: #808080;">'+opis+'</span>');
	pop.document.write('<br /><br /><a href="javascript: this.close()"><span style="font-family: sans-serif, Verdana, Helvetica; font-size: 10pt; color: #808080;text-decoration:none;">Zamknij okno</span></a></center>');
	pop.document.write('</body></html>');
}

function fotoGo(img){
	posleft=(window.screen.width/2)-300;
	var pars="height=450,width=640,left="+posleft+",top=50";
	var link=img;
	window.open(link,'popSpec',pars);
	pop.document.write('<head><title>' + img +'</title></head>');
	pop.document.write('<body bgcolor=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0>');
	pop.document.write('<center><IMG SRC="img.php?gfx=' + img +'&w=700" BORDER=0></center>');
	pop.document.write('</body>');
}