<!--

function validateForm(theform) {

  
  // Nombre:
  if (theform.Nombre.value==''){
    alert(confirmform[10]);
    theform.Nombre.focus();
    return false;
  }

  // Apellidos:
  if (theform.Apellidos.value==''){
    alert(confirmform[12]);
    theform.Apellidos.focus();
    return false;
  }

  if (theform.Dia.value==''){
    alert(confirmform[14]);
    theform.Dia.focus();
    return false;
  }


  if (theform.Num_personas.value==''){
    alert(confirmform[18]);
    theform.Num_personas.focus();
    return false;
  }

  // Email:
  if (!checkEmail(theform.Email.value)){
    alert(confirmform[20]);
    theform.Email.focus();
    return false;
  }

  // Telefono:
  if (theform.Telefono.value.length < 9){
    alert(confirmform[22]);
    theform.Telefono.focus();
    return false;
  }

  // Hora:
  
  /*
  if (theform.Hora.value.length < 2){
    alert(confirmform[24]);
    theform.Hora.focus();
    return false;
  }
  */
  return true;
}


function checkEmail(emailaddr) {
  var retval=false;

  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailaddr)) {
    retval= true;
  } 
  return retval;
}


// -->
