function CheckMail() {
var wzor =/^(.+?)@(([a-z0-9\.-]+?)\.[a-z]{2,5})$/i;

if (document.form2.imie.value=="") {
alert('Proszę podać swoje imię ...');
document.form2.imie.focus();
return (false);
}

if (document.form2.email.value=="") {
alert('Proszę podać swój adres e-mail ...');
document.form2.email.focus();
return (false);
}

if (wzor.test(document.form2.email.value) == false) {
	alert('Adres e-mail wydaje się być niepoprawny!');
	document.form2.email.focus(); 
                   return (false);
	}


if (document.form2.temat.value=="") {
alert('Proszę podać temat wiadomości ...');
document.form2.temat.focus();
return (false);
}

if (document.form2.tresc.value=="") {
alert('Proszę podać treść ...');
document.form2.tresc.focus();
return (false);
 }

else {
window.alert ('Dziekujemy!\nWymagane pola zostały wypełnione.\nZa chwilę nastąpi przetwarzanie formularza. Proszę czekać ...');
return (true);
  }
}


function Anuluj() {
var a = confirm('Czy napewno chcesz wyczyścić pola formularza?');
if (a) {
return(true);
}
else {
return(false);
  }
}


function Plus() {
var n=3;
if(document.form2.tresc.rows<=16) {
document.form2.tresc.rows+=n;
 }
}

function Minus() {
var n=3;
if (document.form2.tresc.rows>6) {
document.form2.tresc.rows-=n;
 }
}