function obrazek(src, szer,wys, tytul) {
okno = window.open(src,'','width='+szer+',height='+wys);
okno.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>'+tytul+'</title></head><body style="margin:0;padding:0;"><img alt="'+tytul+'  || Kliknij by zamkn±æ" onclick="self.close();" src='+src+'></body></html>');
okno.document.close();
if(navigator.userAgent.indexOf('Opera') != -1){
okno.window.moveTo((0.5*screen.width)-(0.5*szer),10);
}else{
okno.window.moveTo((0.5*screen.width)-(0.5*szer),(0.5*screen.height)-(0.5*wys));
}
}

function openpopup(id)
{
    url = '/popup.php?popup='+id;
    popupwindow = window.open(url,"_new","width=700,height=500,resizable=no,status=no,scrollbars=yes");
}


function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "";
}
function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = ""; }
else { document.getElementById(d).style.display = "none"; }
}


function PrintPage(){
   window.open('/?id=21008&print=true', '', 'width=600,height=400,scrollbars=yes,status=no,menubar=yes,location=no,toolbar=no');
}

function showForm(data) {
if(data == "question") {
     if (document.getElementById('question').style.display == "block") {
     document.getElementById('question').style.display = "none";
     document.getElementById('intres').style.display = "none";
     }
     else {
     document.getElementById('question').style.display = "block";
     document.getElementById('intres').style.display = "none";
     }
 }
else {
     if (document.getElementById('intres').style.display == "block") {
     document.getElementById('question').style.display = "none";
     document.getElementById('intres').style.display = "none";
     }
     else {
     document.getElementById('intres').style.display = "block";
     document.getElementById('question').style.display = "none";
     }
 }
}