function validar(theForm){

/*
        if(theForm.chose.value == "null") {
        alert("Debes seleccionar un apartado de busqueda");
        theForm.chose.focus();
        return(false);
        }
*/
        if(theForm.searchstring.value == "") {
        alert("Introduce el texto de busqueda");
        theForm.searchstring.focus();
        return(false);
        }





 if(theForm.searchstring.value != "") {
var parsed29 = true;
var largo29= theForm.searchstring.value;
if (largo29.length < 3){alert("Introduce mínimo 3 caracteres");theForm.searchstring.focus();return(false);}
  var validchars29 = "0123456789abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ.-_ ";
  for (var z=0; z < largo29.length; z++) {
    var letter29 = largo29.charAt(z);
    if (validchars29.indexOf(letter29) != -1)
      continue;
    alert("Por favor, escriba una combinación de números y/o letras del abecedario español en el campo de busqueda.");
    parsed29 = false;

    theForm.searchstring.focus();
    return(false);
break;

  }
}

// final de la  funcion
}
///////////////////////////////////////////////////////////////

function validar2(theForm){


        if(theForm.chose2.value == "null") {
        alert("Debes seleccionar un apartado de busqueda");
        theForm.chose2.focus();
        return(false);
        }

        if(theForm.ID.value == "") {
        alert("Introduce el número de socio a buscar");
        theForm.ID.focus();
        return(false);
        }
// final de la funcion 22222222


 if(theForm.ID.value != "") {
var parsed292 = true;
var largo292= theForm.ID.value;
if (largo292.length < 1){alert("Introduce mínimo 1 carácter");theForm.ID.focus();return(false);}
  var validchars292 = "0123456789abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ.-_";
  for (var z=0; z < largo292.length; z++) {
    var letter292 = largo292.charAt(z);
    if (validchars292.indexOf(letter292) != -1)
      continue;
    alert("Por favor, escriba una combinación de números y/o letras del abecedario español en el campo de busqueda.");
    parsed292 = false;

    theForm.ID.focus();
    return(false);
break;

  }
}


if (parent.frames.length){
//parent.frames['contenido'].location = "listado.asp?a=edit&ID="+ theForm.ID.value;
}


}

///////////////////////////////////////////////////////////////

//-->