//FORM buscar
//00 'Criterios_de_busqueda
//*************************************
// CRISTIAN QUINTANA  VARIABLES GLOBALES
var swOK=0;
var nEle=0;
var sError='';
// CRISTIAN QUINTANA
function darioquintana() {
var nTot=0;
var nPas=0;
var nTorna=0;
sError="Buscador del Portal de Servicio de CNC \n----> Error! Complete el Campo Correctamente <----\n -------------------------------------------------------------------------------------- "+"\n";
//sError2="Gracias por Contactarce, "+"\n";
//sError2="Gracias por Contactarce, +quintana.nombre_del_contacto.value+,su e-mail es : +quintana.email.value+  "+"\n";
//sError3="hola,"+document.forms[0].elements[nEle].name.substr(0)+",contiene caracteres NO VALIDOS"+"\r"
//sError="Lista de errores: "+"\n";
  for (var j=0; j<1; j++) {
    nEle=j;
    // CRISTIAN QUINTANA LOS TIPOS
    var sNom=document.forms[0].elements[j].name;
    var sOne=sNom.substring(0,1);
    var sTwo=sNom.substring(1,2);
    var stre=sNom.substring(2,3);
//(sOne=='N' && sTwo=='O' && stre=='O' && scua=='O' && scin=='O' && ssei=='O' && ssie=='O' && soch=='O' && snue=='O'
//&& sdie=='O' && sonc=='O' && sdoc=='O' && strec=='O' && scat=='O' && squi=='O' && sdies=='O' && sdiesi=='O' 
//&& sdiesio=='O')
//00 'Criterios_de_busqueda
if (sOne=='C' && sTwo=='r') {
CaracterNoValid(document.forms[0].elements[j].value,'00');
nTot+=swOK;
}
// CRISTIAN QUINTANA DE ERRORES
if (nPas==0 && nTot>0) {
   document.forms[0].elements[nEle].focus()
    nPas=1
  }
  }
  if (nTot>0)
    alert(sError)
else
    //alert(sError2)
   // alert(sError3)
document.buscar.submit();
}
// CRISTIAN QUINTANA CAMPO A CAMPO
//------12345678901234567890123456789012345678901234567890123456789012345678901234567890101234
//------°!"#$%&/()=?¡|¿,;.:-{}[]<>@*¬^+\_'~ABCDEFGHIJLMNÑOPQRSTUVWXYZabcdefghijlmnñopqrstuvwxyz no " no \
function CaracterNoValid(pCaracter,pType) {
//00 'Criterios_de_busqueda
 if (pType=='00') {
  swOK=0;
    if (pCaracter=='') {
       sError+="* Ingrese su, "+document.forms[0].elements[nEle].name.substr(0)+" ,alfanumérico" +"\r"
       swOK=1;
       return
     }
  }

  }
