<!-- NOWE OKNO -->

function Okno(file,w,h,p_w,p_h,scrol) {
var wartosci = 'toolbar=no,scrollbars=' +scrol+ ',resizable=no,menubar=no' + ',width=' + w + ',height=' + h + ',left=' + p_w + ',top=' + p_h + '';
window.open(file,'',wartosci);
}

function Pay(file) {
var wartosci = 'toolbar=no,scrollbars=yes,status=yes,resizable=no,menubar=no,width=800,height=550,left=0,top=0';
window.open(file,'',wartosci);
}

function Print(file) {
var wartosci = 'toolbar=no,scrollbars=yes,status=yes,resizable=no,menubar=yes,width=570,height=550,left=0,top=0';
window.open(file,'',wartosci);
}

function Okno2(file,w,h,p_w,p_h,scrol) {
var wartosci = 'toolbar=no,scrollbars=' +scrol+ ',resizable=no,menubar=yes' + ',width=' + w + ',height=' + h + ',left=' + p_w + ',top=' + p_h + '';
window.open(file,'',wartosci);
}

function News(id) {
var wartosci = 'toolbar=no,scrollbars=yes,status=yes,resizable=no,menubar=yes,width=570,height=550,left=0,top=0';
var file = '/_include/index_news.php?news_id='+id
window.open(file,'',wartosci);
}

function checkNewsletter(f) {
if (f.first_name.value=='') {
	alert('Nie podałeś/aś imienia.');
	return false;
} if (f.email.value=='') {
	alert('Nie podałeś/aś adresu e-mail');
	return false;
} if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
	alert('Podałeś błędny e-mail.');
	return false;
} else  {
	return true;
}
}

function checkNewsletterPP(f) {
if (f.first_name.value=='') {
	alert('Nie podałeś/aś imienia.');
	return false;
} if (f.email.value=='') {
	alert('Nie podałeś/aś adresu e-mail');
	return false;
} if ( ((f.email.value.indexOf('@',1))==-1)||(f.email.value.indexOf('.',1))==-1 ) {
	alert('Podałeś błędny e-mail.');
	return false;
} if (f.pp.checked != true) {
	alert('Nie zgodziłeś/aś się z Polityką Prywatności.');
	return false;
} else  {
	return true;
}
}


<!-- ZNIKAJACY OBRAZEK -->

alphaFadeObjects = new Object();
alphaFadeTimers = new Object();

function alphaFade(object, destOp, rate, delta){
 if (!document.all)
 return
    if (object != "[object]"){ 
        setTimeout("alphaFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(alphaFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        alphaFadeObjects[object.sourceIndex]=object;
        alphaFadeTimers[object.sourceIndex]=setTimeout("alphaFade(alphaFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
    if (object.filters.alpha.opacity == 0) { object.style.visibility='hidden'; }
  }

function show(object,cur) { 
	document.getElementById(cur).style.display = 'none';
	document.getElementById(object).style.display = 'block';
}

<!-- BOOKMARK -->

function Bookmark(url,title)
{
if (document.all) {window.external.AddFavorite (url,title);}

if (document.layers) {
  bktext = open("", "displayWindow", "width=200,height=100,status=no,toolbar=no,menubar=no");

  bktext.document.open();
  bktext.document.write("<html><head><tilte>Dodaj do ulubionych</title><META HTTP-EQUIV='CONTENT-TYPE' CONTENT='text/html;CHARSET=iso-8859-2'></head><body bgcolor='white' text='black'>"
  +"<font size='-1' family='arial'>Aby dodac ta strone do ulubionych, PO zamknieciu okna nacisnij CTRL+D"
  +"<br><br>"
  +"<a href='javascript:self.close();'>Zamknij okno</a>"
  +"<br><br>");
  bktext.document.write("</body></html>");
  bktext.document.close() ;
  }
}