
function checkForm(form) {

with (document.forms['rezerwacja']) {
var alertMsg = "Wypełnij poniższe pola:\n";


if (nazwisko.value == "") alertMsg += "\nImię i nazwisko";
if (email.value == "") alertMsg += "\nE-mail";
if (nazwiskoG.value == "") alertMsg += "\nImię i nazwisko gościa(i)";
if (iloscOsob.value == "") alertMsg += "\nIlość osób";
if (pobytOd.value == "") alertMsg += "\nPobyt od";
if (pobytDo.value == "") alertMsg += "\nPobyt do";

if (alertMsg != "Wypełnij poniższe pola:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } 

}
