function PopUp(l, w, h) {
	w = window.open('','','resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width='+w+',height='+h+',left=0,top=0');

	d = w.document
	d.writeln('<html>')
	d.writeln('<head>')
	d.writeln('<style type="text/css">body {background-color:0xFFFFFF;margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;}</style>')
	d.writeln('<title>Kliknij na zdjęciu, aby zamknąć okno.</title>')
	d.writeln('</head>')
	d.writeln('<body>')
	d.writeln('<a href="javascript:self.close()"><img alt="Close window" src="'+l+'" border="0"></a>')
	d.writeln('</body>')
	d.writeln('</html>')
	d.close()
	return false;
}

function PopUpLocation(l) {
	window.open(l,'','resizable=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=800,height=600,left=0,top=0');
	return false;
}

function number_format(number, decimals, dec_point, thousand_sep, p)
{ var n=(''+(Math.round(number*(p=Math.pow(10,decimals||0)))/p)).split('.'); 
	for(var i=(n[0]=n[0].split('')).length-3; i>0; i-=3)
		{ n[0].splice(i,0,thousand_sep); } 
		return n[0].join('')+(n[1]?(dec_point||',')+n[1]:''); 
}