<!--
function validateLogin(theform) {
  // Usuario:
  if (theform.user.value==''){
    alert(confirmform[21]);
    theform.user.focus();
    return false;
  }

  // Contraseņa:
  if (theform.pass.value==''){
    alert(confirmform[22]);
    theform.pass.focus();
    return false;
  }
}

function validateForm(theform) {

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

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

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


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

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

  if (theform.pais.value==''){
    alert(confirmform[19]);
    theform.pais.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;
  }
  if (!checkAceptar(theform)) {
    return false;
  }
  */

  return true;
}


function checkEmail(email){
  var testresults;
  var str=email;
  var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
  if (filter.test(str))
    testresults=true;
  else
    testresults=false;
  return (testresults);
}


function checkAceptar(theform) {
  
  if(theform.aceptar.checked) {
    return true;
  } else {
    alert(confirmform[26]);
    return false;
  }
}


// -->

