
function checkForm1() {
	with (document.forms['advaform']) {
		var alertMsg = "Wypełnij poniższe pola:\n";

		if ((imie.value == "") || (imie.value == "Imię i nazwisko *")) alertMsg += "\nImię i Nazwisko";
		if ((tel.value == "") || (tel.value == "Twój numer telefonu *")) alertMsg += "\ntelefon";
	}

	

	if (alertMsg != "Wypełnij poniższe pola:\n") {
		alert(alertMsg);
		return false;
	} else {
		return true;
	}

}


function checkForm2() {
	with (document.forms['contactForm']) {
		var alertMsg = "Wypełnij poniższe pola:\n";

		if ((email.value =="e-mail *") || (email.value == "") || (email.value.indexOf ('@') == -1) || (email.value.indexOf ('.') == -1)) alertMsg += "\nTwój email";
		if ((imie.value == "") || (imie.value == "Imię i nazwisko *")) alertMsg += "\nImię i Nazwisko";
	}

	

	if (alertMsg != "Wypełnij poniższe pola:\n") {
		alert(alertMsg);
		return false;
	} else {
		return true;
	}

}
