function Powieksz(nazwa, width, height)
{
var nowe;
var width1 = width+10;
var height1 = height+10;
nowe=window.open('','', 'width='+width1+', height='+height1+',resizable=no,fullscreen=no,toolbar=no,directories=no,menubar=no,locations=no,status=no,scrollbars=no');
nowe.document.open();
nowe.document.write('<html>\n<head><title>Zdjęcie</title>\n');
nowe.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">\n');
nowe.document.write('<link href="style/style.css" type="text/css" rel="stylesheet">\n</head>\n');
nowe.document.write('<body bottommargin="5" leftmargin="5" rightmargin="5" topmargin="5">');
nowe.document.write('<a href="javascript:window.close();"><img src="Image/foto/'+nazwa+'.jpg" width="'+width+'" height="'+height+'" border="0" alt="Kliknij, aby zamkn±ć"></a></body></html>');
nowe.document.close(); 
nowe.focus(); 
}

function pomoc(theURL,winName) 
	{
	var winWidth = 500;
	var winHeight = 450;
	var w = (screen.width - winWidth)/2;
	var h = (screen.height - winHeight)/2 - 30;
	var features = ',width='+winWidth+',height='+winHeight+',top='+h+',left='+w+',menu=0,scrollbars=yes';
	window.open(theURL,winName,features);
	}

function wstaw(ikona)
	{
	if (document.wpis.tresc.createTextRange)
		{
		document.wpis.tresc.focus();
		document.selection.createRange().duplicate().text = ikona;
		}
	else
		{
	    document.wpis.tresc.value += ikona;
		}
	}

function sprawdz()
    {
    if((document.wpis.nick.value=="")||(document.wpis.tresc.value==""))
        {
        window.alert("Wypełnij wszystkie pola zaznaczone * !");
        }
    else
        {
        document.wpis.submit();
        }
    }

function newssprawdz()
    {
    if((document.wpis.autor.value=="")||(document.wpis.wypowiedz.value==""))
        {
        window.alert("Wypełnij wszystkie pola zaznaczone * !");
        }
    else
        {
        document.wpis.submit();
        }
    }

function newssprawdz2()
    {
    if((document.wpis.tytul.value=="")||(document.wpis.wypowiedz.value==""))
        {
        window.alert("Wypełnij wszystkie pola zaznaczone * !");
        }
    else
        {
        document.wpis.submit();
        }
    }

