function openWindow(URL,NazwaOkna,wlasciwosci) 
{
  window.open(URL,NazwaOkna,wlasciwosci);
}

var obrazki=new Array();

function pobierz()
{
for (i=0;i<pobierz.arguments.length;i++)
{
obrazki[i]=new Image()
obrazki[i].src=pobierz.arguments[i]}
}

function zamknij()
	{
		document.cookie = 'regionc=0; expires=0';
		location.reload();

		}


text = new String();
text1 = new String();

function kateg()
{
zm = document.redaktor.Kategoria_a.value;
text1 = text1+" "+zm; 
document.redaktor.Kategoria.value = text1;
document.redaktor.Kateg_wyswietl.value = text1;
return text1;
}

function aktual()
{
zm = document.redaktor.poz.value;
text = text+" "+zm; 
document.redaktor.Klucze.value = text;
return text;
}

function sprawdz()
{
i=0;

//if (document.redaktor.Kategoria.value==''){alert('Przydziel wiadomosc do kategorii'); i=1;}
if (document.redaktor.tytul.value=='') {alert('Nadaj tytul wiadomosci'); i=1;}
if (document.redaktor.naglowek.value=='') {alert('Podaj tresc naglowka'); i=1;}

if (i==0)
{document.redaktor.submit();} 
}

function open_win(URL,NazwaOkna,wlasciwosci)
{
  window.open(URL,NazwaOkna,wlasciwosci);
}


function resize()
{
if(document.all.i1.clientHeight<document.all.i2.clientHeight)
{document.all.i1.height=document.all.i2.clientHeight;}
else
{document.all.i2.height=document.all.i1.clientHeight;}
}

function no(sciezka,nazwaokna,zmienne) {
  window.open(sciezka,nazwaokna,zmienne+',resizable=yes,status=yes');
}	