function SprawdzFormularz(f) {

    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ś/aś błędny adres e-mail');
    return false;
    }

    if (f.imie.value=='') {
    alert('Nie podałeś/aś swojego imienia');
    return false;
    }

    else {
    return true;
    }
    }

function wybierz(s) {
if (s.options[s.selectedIndex].value != "none"){
  var gourl = s.options[s.selectedIndex].value;    
  window.top.location.href = gourl;}
}

function nowaStrona(obrazek) {
	document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
	document.write('<html><head>');
	document.write('<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">');
	document.write('<TITLE>www.swiatlo.tak.pl</TITLE>');
	document.write('<link REL="stylesheet" HREF="http://www.swiatlo.tak.pl/styl/styl.css" type="text/css">');	
	document.write('</head><body>');
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td>');
	document.write('&nbsp;<nobr><img SRC="http://www.swiatlo.tak.pl/styl/odblask35.jpg" ALT="słońce" height=35 width=35> &nbsp;<b style="font-size: 47">Światło i oświetlenie</b></nobr>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('Jasna strona<br>Internetu<br><a href="http://www.swiatlo.tak.pl" class="menustopka"><b>www.swiatlo.tak.pl</b></a>');
	document.write('</td></tr>');
	document.write('</table>');
	
	
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td class="t1"></td><td class="t2"></td><td class="t3"></td></tr><tr><td class="t4"></td><td class="t5" align="center">');
	
	document.write('<FORM>');
	document.write('<INPUT TYPE="BUTTON" VALUE="Wstecz" onClick="history.back()">');
	document.write('</FORM>');
	document.write('<p><img SRC="' + obrazek + '"><br>&nbsp;');
	document.write('</td><td class="t6"></td></tr><tr><td class="t7"></td><td class="t8"></td><td class="t9"></td></tr></table>');
	document.write('<center>');
	document.write('<div class=copy>');
	document.write('<nobr>&nbsp;Copyright &copy; Przemysław Oziemblewski. Wszelkie prawa zastrzeżone.&nbsp;</nobr>');
	document.write('</center>');
	document.write('</body></html>');
}

function nowaTapeta(obrazek,tatapeta) {
	document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
	document.write('<html><head>');
	document.write('<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">');
	document.write('<TITLE>www.swiatlo.tak.pl</TITLE>');
	document.write('<link REL="stylesheet" HREF="http://www.swiatlo.tak.pl/styl/styl.css" type="text/css">');	
	document.write('</head><body>');
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td>');
	document.write('&nbsp;<nobr><img SRC="http://www.swiatlo.tak.pl/styl/odblask35.jpg" ALT="słońce" height=35 width=35> &nbsp;<b style="font-size: 47">Światło i oświetlenie</b></nobr>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('Jasna strona<br>Internetu<br><a href="http://www.swiatlo.tak.pl" class="menustopka"><b>www.swiatlo.tak.pl</b></a>');
	document.write('</td></tr>');
	document.write('</table>');
	
	
	document.write('<TABLE align=center border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td class="t1"></td><td class="t2"></td><td class="t3"></td></tr><tr><td class="t4"></td><td class="t5" align="center">');
	
	document.write('<FORM>');
	document.write('<INPUT TYPE="BUTTON" VALUE="Wstecz" onClick="history.back()">');
	document.write('</FORM>');
	document.write('<p><img SRC="tapety/' + obrazek + tatapeta + '.jpg"><br>&nbsp;');
	document.write('</td><td class="t6"></td></tr><tr><td class="t7"></td><td class="t8"></td><td class="t9"></td></tr></table>');
	document.write('<center>');
	document.write('<div class=copy>');
	document.write('<nobr>&nbsp;Copyright &copy; Przemysław Oziemblewski. Wszelkie prawa zastrzeżone.&nbsp;</nobr>');
	document.write('</center>');
	document.write('</body></html>');
}

function nowyObrazek(obrazek,opis) {
	document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
	document.write('<html><head>');
	document.write('<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">');
	document.write('<TITLE>www.swiatlo.tak.pl</TITLE>');
	document.write('<link REL="stylesheet" HREF="http://www.swiatlo.tak.pl/styl/styl.css" type="text/css">');	
	document.write('</head><body>');
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td>');
	document.write('&nbsp;<nobr><img SRC="http://www.swiatlo.tak.pl/styl/odblask35.jpg" ALT="słońce" height=35 width=35> &nbsp;<b style="font-size: 47">Światło i oświetlenie</b></nobr>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('Jasna strona<br>Internetu<br><a href="http://www.swiatlo.tak.pl" class="menustopka"><b>www.swiatlo.tak.pl</b></a>');
	document.write('</td></tr>');
	document.write('</table>');
	
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td class="t1"></td><td class="t2"></td><td class="t3"></td></tr><tr><td class="t4"></td><td class="t5" align="center">');
	
	document.write('<FORM>');
	document.write('<INPUT TYPE="BUTTON" VALUE="Wstecz" onClick="history.back()">');
	document.write('</FORM>');
	document.write('<p><img SRC="' + obrazek + '"><br><br><b class=podpis-pod-obrazem> ' + opis +'</b>&nbsp;');
	document.write('</td><td class="t6"></td></tr><tr><td class="t7"></td><td class="t8"></td><td class="t9"></td></tr></table>');
	document.write('<center>');
	document.write('<div class=copy>');
	document.write('<nobr>&nbsp;Copyright &copy; Przemysław Oziemblewski. Wszelkie prawa zastrzeżone.&nbsp;</nobr>');
	document.write('</center>');
	document.write('</body></html>');
}

function nowaStronaMax(obrazek) {
	document.write('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
	document.write('<html><head>');
	document.write('<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=iso-8859-2">');
	document.write('<TITLE>www.swiatlo.tak.pl</TITLE>');
	document.write('<link REL="stylesheet" HREF="http://www.swiatlo.tak.pl/styl/styl.css" type="text/css">');	
	document.write('</head><body>');
	document.write('<TABLE align=center WIDTH="760" border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td>');
	document.write('&nbsp;<nobr><img SRC="http://www.swiatlo.tak.pl/styl/odblask35.jpg" ALT="słońce" height=35 width=35> &nbsp;<b style="font-size: 47">Światło i oświetlenie</b></nobr>');
	document.write('</td>');
	document.write('<td align="right">');
	document.write('Jasna strona<br>Internetu<br><a href="http://www.swiatlo.tak.pl" class="menustopka"><b>www.swiatlo.tak.pl</b></a>');
	document.write('</td></tr>');
	document.write('</table>');
	
	
	document.write('<TABLE align=center border=0 BGCOLOR="#FFFFFF" CELLPADDING=0 CELLSPACING=0>');
	document.write('<tr><td class="t1"></td><td class="t2"></td><td class="t3"></td></tr><tr><td class="t4"></td><td class="t5" align="center">');
	
	document.write('<FORM>');
	document.write('<INPUT TYPE="BUTTON" VALUE="Wstecz" onClick="history.back()">');
	document.write('</FORM>');
	document.write('<p><img SRC="' + obrazek + '"><br>&nbsp;');
	document.write('</td><td class="t6"></td></tr><tr><td class="t7"></td><td class="t8"></td><td class="t9"></td></tr></table>');
	document.write('<center>');
	document.write('<div class=copy>');
	document.write('<nobr>&nbsp;Copyright &copy; Przemysław Oziemblewski. Wszelkie prawa zastrzeżone.&nbsp;</nobr>');
	document.write('</center>');
	document.write('</body></html>');
}
