// JavaScript Document
function cadastraReserva(){
	
	
	var nome =  document.forms['reserva'].nome;
	var data_chegada =  document.forms['reserva'].data_chegada;
	var hora =  document.forms['reserva'].hora;
	var pax =  document.forms['reserva'].pax;
		var email =  document.forms['reserva'].email;
	
	
	if (nome.value == "") {
		alert ('O campo nome é obrigatório');
		nome.focus();
		return false;
		}

	if (data_chegada.value == "") {
		alert ('O campo data de chegada é obrigatório');
		data_chegada.focus();
		return false;
	}
	if (hora.value == "") {
		alert ('O campo hora é obrigatório');
		hora.focus();
		return false;
		}
	if (pax.value == "") {
		alert ('O campo pax é obrigatório');
		pax.focus();
		return false;
		}
	if (email.value == "") {
		alert ('O campo email é obrigatório');
		pax.focus();
		return false;
		}

	return true;

}
