// JavaScript Document
function validar_reserva(theForm)
{

  if (theForm.nome.value == "")
  {
    alert("Não inseriu o seu nome!");
    theForm.nome.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Não inseriu o seu email!");
    theForm.email.focus();
    return (false);
  }
 
  if (theForm.email.value != theForm.email2.value)
  {
    alert("Os e-mails não coincidem!");
    theForm.email.value = "";
    theForm.email2.value = "";
    theForm.email.focus();
    return (false);
  }
  
  if (theForm.telefone.value == "")
  {
    alert("Não inseriu o Telefone!");
    theForm.telefone.focus();
    return (false);
  }
  
  if (theForm.lugares.value == "")
  {
    alert("Não inseriu o número de Lugares!");
    theForm.lugares.focus();
    return (false);
  }
  
    if (theForm.hora.value == "")
  {
    alert("Não inseriu a Hora!");
    theForm.hora.focus();
    return (false);
  }
  
  return (true);
}
