<!-- //

var from = escape(document.referrer);
var query = location.search;
var colorDepth = window.screen.colorDepth;			
var res = window.screen.width + "," + window.screen.height;
document.write("<img src='statystyka/zlicz.php?referer=" + from + "&query=" + query + "&kolory=" + colorDepth + "&rozdzielczosc=" + res + "' align='middle' style='display:none'>");

function SprawdzEmail(adres) 
{	
   a = adres.value.search(/@/i);
   a1 = adres.value.substring(0,a);
   a2 = a1.length;
   a = a + 1;
   b = adres.value.indexOf(".");
   b1 = adres.value.substring(a,b);
   b2 = b1.length;
   b = b + 1;
   c = adres.value.length;
   c1 = adres.value.substring(b,c);
   c2 = c1.length;
   if(adres.value.indexOf("@") != "-1" && adres.value.indexOf(".") != "-1" && a2 >= 1 && b2 >= 1 && c2 >= 1)
   {
   	return true;
   }
   else
   {
   	return false;
   }		
}

function FormatIlosci(num)
{
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num))
	{
		num = "0";
	}
	sign = (num == (num = Math.abs(num)));
	num = Math.floor(num+0.50000000001);
	return num;
}

function PowiekszZdjecie(url, width, height)
{
	var okno = null;
	if(okno) okno.close();
	ScrWidth = 640;
	ScrHeight = 480;
	if(window.screen)
  	{
   	ScrWidth = window.screen.width;
		ScrHeight = window.screen.height;
  	}
  	PosX = Math.round((ScrWidth - width) / 2);
  	PosY = Math.round((ScrHeight - height) / 2);
  	width = width;
  	height = height;
  	okno = window.open("show_picture.php?url="+url+"", "zdjecie", "menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + PosX + ",top=" + PosY);
  	//okno.document.clear();
	//okno.document.write("<html><head><title>Powiększenie zdjęcia</title><meta http-equiv='content-type' content='text/html; charset=ISO-8859-2'><script type=\"text/javascript\" language=\"JavaScript\" src=\"js/swfobject.js\"></script></head><style type=\"text/css\">body { margin:0; padding:0; }</style><body><div id=\"image\"></div><script type=\"text/javascript\" language=\"JavaScript\"><!--\n");
	//okno.document.write("var so = new SWFObject(\"flash/img.swf\", \"fHeader\", \"640\", \"480\", \"8\", \"#FFFFFF\"); so.useExpressInstall(\"flash/expressinstall.swf\"); so.addParam(\"wmode\", \"transparent\"); so.addParam(\"scale\", \"noscale\"); so.addParam(\"quality\", \"high\"); so.addParam(\"menu\", \"false\"); so.addParam(\"flashvars\", \"img="+url+"\"); so.write(\"image\");");
	//okno.document.write("\n// --></script></body></html>");
	//okno.document.close();
  	okno.focus();	
}

// -->
