// JavaScript Document

function checa_formulario(form){
if (form.nome.value == ""){
alert("Please, fill the field Name.");
form.nome.focus();
return (false);
}
if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))){ 
alert("Please type a valid email.")
form.email.focus()
return (false) 
}
if ((form.dataentrada.value == "") || (form.dataentrada.value == "dd/mm/yyyy")){
alert("Please specify the date you wish to arrive.");
form.dataentrada.focus();
return (false);
}
if (form.numpessoas.value == ""){
alert("Please type the number of people.");
form.numpessoas.focus();
return (false);
}
return (true);
}