// JavaScript Document
function send(){
message=document.forms[0].message.value;
if(!message){
	window.alert("Pole \"Treść wiadomości\" musi zostać wypełnione!");
	document.forms[0].message.focus();
	return false;
	}

signature=document.forms[0].signature.value;
if(!signature){
	window.alert("Pole \"Podpis\" musi zostać wypełnione!");
	document.forms[0].signature.focus();
	return false;
	}
		
email=document.forms[0].email.value;
if(!email){
	window.alert("Pole \"E-mail\" musi zostać wypełnione!");
	document.forms[0].email.focus();
	return false;
	}
if ((email.length>250) || (email.length<5)) {
	window.alert("Wprowadzono nieprawidłowy adres e-mail!");
	document.forms[0].email.focus();
	return false;
	} 
if (email.indexOf("@")<0) {
	window.alert("Wprowadzono nieprawidłowy adres e-mail!");
	document.forms[0].email.focus();
	return false;
	} 
		
document.forms[0].action="send2.php";
}
