function validar(theForm){

        if(theForm.numSocio.value == "") {
        alert("Por favor, indique su numero de Socio.");
        theForm.numSocio.focus();
        return(false);
        }

        if(theForm.name.value == "") {
        alert("Por favor, indique su Nombre.");
        theForm.name.focus();
        return(false);
        }
        if(theForm.lname.value == "") {
        alert("Por favor, indique sus Apellidos.");
        theForm.lname.focus();
        return(false);
        }

        if(theForm.e_mail.value == "") {
        alert("Por favor, indique el email.");
        theForm.e_mail.focus();
        return(false);
        }

        if(theForm.e_mail.value != "") {

        var largoV9 = theForm.e_mail.value;
                if (largoV9.length < 6){
                theForm.e_mail.focus();alert("Email incorrecto");return (false);

                }else{

                var valor1v9 = "false";
                var valor2v9 = "false";
                        for(x = 0;x<largoV9.length;x++){
                        var oneChar2v9 = largoV9.charAt(x);
                        if (oneChar2v9 == "@"){valor1v9 = "true";}
                        if (oneChar2v9 == "."){valor2v9 = "true";}
                        }
                if (valor1v9 == "true"){if(valor2v9 == "true"){}else{theForm.e_mail.focus();alert("Email incorrecto");return (false);}} else {theForm.e_mail.focus();alert("Email incorrecto");return (false);}

                }

        }

//////////////////////////
 if(theForm.wphone.value != "") {
var parsed291 = true;
var largo291= theForm.wphone.value;
if (largo291.length <9 ){alert("El teléfono no puede ser inferior a 9 dígitos");theForm.wphone.focus();return(false);}
  var validchars291 = "0123456789 .";
  for (var z=0; z < largo291.length; z++) {
    var letter291 = largo291.charAt(z);
    if (validchars291.indexOf(letter291) != -1)
      continue;
    alert("Por favor, escriba  números en el campo teléfono.");
    parsed291 = false;

    theForm.wphone.focus();
    return(false);
break;

  }
}

//////////////////////////
// final de la  funcion
}


//-->