
function popup(a){
  var akcja=a;
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=0, scrollbars=0,  resizable=0, width=570, height=350, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Nowości</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  okno.document.write('<center><iframe src="popup.php?akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function otworzformularzkontaktowy(s){
  var ktory=s.options[s.selectedIndex].value;
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=1, scrollbars=0,  resizable=0, width=665, height=500, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Formularz zgłoszeniowy</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  okno.document.write('<center><iframe src="formularz_kontaktu.php?id='+ktory+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function otworzformularzfaksowy(s){
  var ktory=s.options[s.selectedIndex].value;
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=1, scrollbars=0,  resizable=0, width=665, height=500, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Formularz zgłoszeniowy</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  okno.document.write('<center><iframe src="formularz_faksowy.php?id='+ktory+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function konto(s, a){
  var akcja=a;
  if(akcja=="przegladaj_edytuj"){
    var konto=s.options[s.selectedIndex].value;
  }
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=0, scrollbars=0,  resizable=0, width=312, height=400, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Konto użytkownika</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  if(akcja=="przegladaj_edytuj"){
    okno.document.write('<center><iframe src="konto.php?id='+konto+'&akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  if(akcja=="zaloz_konto"){
    okno.document.write('<center><iframe src="konto.php?akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function nowosc(s, a){
  var akcja=a;
  if(s=="edytuj_b1"){var nowosc=1;}
  if(s=="edytuj_b2"){var nowosc=2;}
  if(s=="edytuj_b3"){var nowosc=3;}
  if(s=="edytuj_b4"){var nowosc=4;}
  if(s=="edytuj_b5"){var nowosc=5;}
  if(s=="edytuj_b6"){var nowosc=6;}
  if(s=="edytuj_b7"){var nowosc=7;}
  if(s=="edytuj_b8"){var nowosc=8;}
  if(s=="edytuj_b9"){var nowosc=9;}
  if(s=="edytuj_b10"){var nowosc=10;}
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=0, scrollbars=0,  resizable=0, width=512, height=350, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Nowości</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  if(akcja=="edytuj_nowosc"){
    okno.document.write('<center><iframe src="nowosc.php?poz='+nowosc+'&akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  if(akcja=="dodaj_nowosc"){
    okno.document.write('<center><iframe src="nowosc.php?akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function pozycja(s, a){
  var akcja=a;
  if(akcja=="przegladaj_pozycje"){
    var pozycja=s.options[s.selectedIndex].value;
  }
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=0, scrollbars=0,  resizable=0, width=412, height=400, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Wyszukiwana pozycja</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  if(akcja=="przegladaj_pozycje"){
    okno.document.write('<center><iframe src="wyszukaj.php?id='+pozycja+'&akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  if(akcja=="dodaj_pozycje"){
    okno.document.write('<center><iframe src="wyszukaj.php?akcja='+akcja+'" width="100%" height="100%" frameborder="0"></iframe></center>');
  }
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function pokazzdjecie(ktore, x, y){
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=0, scrollbars=0,  resizable=0, width='+x+', height='+y+', left=50, top=50');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Zdjęcie</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('<LINK rel="stylesheet" href="style.css" type="text/css">');
  okno.document.write('</head>');
  okno.document.write('<body style="margin-top:-10px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  okno.document.write('<center><img src="'+ktore+'" border="0"></center>');
  okno.document.write('</body>');
  okno.document.write('</html>');
}

function drukuj(co){
  okno=window.open('','','toolbar=0, fullscreen=0, location=0, directories=0, menuBar=1, scrollbars=1,  resizable=0, width=645, height=600, left=50, top=25');
  okno.document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
  okno.document.write('<html>');
  okno.document.write('<head>');
  okno.document.write('<title>Formularz zgłoszeniowy</title>');
  okno.document.write('<META NAME="autor" CONTENT="Ad Moto">');
  okno.document.write('<META http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
  okno.document.write('</head>');
  okno.document.write('<body style="color:#000000; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px">');
  okno.document.write('<center>');
  okno.document.write('<table cellpadding="0" cellspacing="0" border="0" width="620" style="color:#000000; font-family:tahoma; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none">');
  okno.document.write('<tr align=left valign=top>');
  okno.document.write('<th colspan=2>Formularz zgłoszeniowy</tr>');
  okno.document.write('<tr align=left valign=top>');
  okno.document.write('<th colspan=2>&nbsp;</tr>');
  okno.document.write('<tr align=left valign=top>');
  okno.document.write('<th colspan=2>');
  okno.document.write('<table cellpadding="0" cellspacing="0" border="0" width="620" style="color:#000000; font-family:tahoma; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none">');
  okno.document.write(co);
  okno.document.write('</table>');
  okno.document.write('</center>');
  okno.document.write('</body>');
  okno.document.write('</html>');
}

