function przywroc()
{
	var i,x,a=document.zrodlo;
	for (i=0; a&&i<a.length&&(x=a[i])&&x.stare; i++)
		x.src=x.stare;
}
function zaladuj()
{
	var d=document;
	if (d.images)
	{
		if(!d.zaladowane)
			d.zaladowane=new Array();
	    var i, j=d.zaladowane.length, a=zaladuj.arguments;
		for (i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0)
			{
				d.zaladowane[j]=new Image;
				d.zaladowane[j++].src=a[i];
			}
	}
}
function znajdz(n, d)
{
	var p, i, x;
	if (!d) d=document;
	if ((p=n.indexOf("?"))>0&&parent.frames.length)
	{
	    d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if (!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0; !x&&i<d.forms.length; i++)
		x=d.forms[i][n];
	for (i=0; !x&&d.layers&&i<d.layers.length; i++)
		x=znajdz(n,d.layers[i].document);
	if(!x&&d.getElementById)
		x=d.getElementById(n);
	return x;
}
function zamien()
{
	var i, j=0, x, a=zamien.arguments;
	document.zrodlo=new Array;
	for(i=0; i<(a.length-2); i+=3)
	if ((x=znajdz(a[i]))!=null)
	{
		document.zrodlo[j++]=x;
		if(!x.stare)
			x.stare=x.src;
		x.src=a[i+2];
	}
}
function okienko(adres, nazwa, szer, wys)
{
	var left=(screen.width-szer)/2;
	left=Math.round(left);
	var top=(screen.height-wys-100)/2;
	top=Math.round(top);
	nazwa=window.open(adres, nazwa, 'resizable=0, height='+wys+', width='+szer+', top='+top+', left='+left);
	nazwa.moveTo(left, top);
	nazwa.focus();
}
function okienko_ref(adres, nazwa, szer, wys)
{
	var left=(screen.width-szer)/2;
	left=Math.round(left);
	var top=(screen.height-wys-100)/2;
	top=Math.round(top);
	nazwa=window.open(adres, nazwa, 'resizable=0,scrollbars=yes, height='+wys+', width='+szer+', top='+top+', left='+left);
	nazwa.moveTo(left, top);
	nazwa.focus();
}
function wyczysc_od()
{
	var wyczysc=document.getElementById("polec_od");
	wyczysc.value="";
}
function wyczysc_do()
{
	var wyczysc=document.getElementById("polec_do");
	wyczysc.value="";
}
function wyczysc_subskrypcja()
{
	var wyczysc=document.getElementById("newsletter");
	wyczysc.value="";
}
function wyczysc_szukaj()
{
	var wyczysc=document.getElementById("filtr");
	wyczysc.value="";
}
