function Valida_Datos()
{
	  if (document.frmdato.txtnombre.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.txtnombre.value;
               var allValid = true;
			
     			 for (i = 0;  i < checkStr.length;  i++)
           		 {
		    			ch = checkStr.charAt(i);
        	       	for (j = 0;  j < checkOK.length;  j++)
					   if (ch == checkOK.charAt(j))
        				   break;
						   if (j == checkOK.length)
						     {
        					   allValid = false;
							   break;
        					  }
				      }  

	     		 if (!allValid)
        			{
	        		alert('El Campo NOMBRE contiene caracteres inválidos');
	        		document.frmdato.txtnombre.focus();
	        		document.frmdato.txtnombre.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese su Nombre");
	       document.frmdato.txtnombre.focus ();
	       return(false);
         } 
		
		
		if (document.frmdato.txtapellido.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.txtapellido.value;
               var allValid = true;
			
     			 for (i = 0;  i < checkStr.length;  i++)
           		 {
		    			ch = checkStr.charAt(i);
        	       	for (j = 0;  j < checkOK.length;  j++)
					   if (ch == checkOK.charAt(j))
        				   break;
						   if (j == checkOK.length)
						     {
        					   allValid = false;
							   break;
        					  }
				      }  

	     		 if (!allValid)
        			{
	        		alert('El Campo APELLIDO contiene caracteres inválidos');
	        		document.frmdato.txtapellido.focus();
	        		document.frmdato.txtapellido.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese su Apellido");
	       document.frmdato.txtapellido.focus ();
	       return(false);
         } 
		
		
		if (document.frmdato.txtdireccion.value == "" )
       	 { 
          alert("Ingrese su Dirección");
	       document.frmdato.txtdireccion.focus ();
	       return(false);
         }
		 
		 if (document.frmdato.txtreferencia.value == "" )
       	 { 
          alert("Ingrese una referencia para llegar a su dirección");
	       document.frmdato.txtreferencia.focus ();
	       return(false);
         }
		
		
		var checkOK = "1234567890.-()/ ";
        var checkStr = document.frmdato.txtcelular.value;
        var allValid = true;
		
		for (i = 0;  i < checkStr.length;  i++)
        	{
		    ch = checkStr.charAt(i);
        		for (j = 0;  j < checkOK.length;  j++)
				   if (ch == checkOK.charAt(j))
        			   break;
						   if (j == checkOK.length)
						     {
        					   allValid = false;
							   break;
        					  }
				      }  
	     		 if (!allValid)
        			{
	        		alert('Su # de celular contiene caracteres inválidos');
	        		document.frmdato.txtcelular.focus();
	        		document.frmdato.txtcelular.value = "";  
					return (false);
	        		}
		 
		 
		 
		var checkOK = "1234567890.-()/ ";
        var checkStr = document.frmdato.txtfijo.value;
        var allValid = true;
		
		for (i = 0;  i < checkStr.length;  i++)
        	{
		    ch = checkStr.charAt(i);
        		for (j = 0;  j < checkOK.length;  j++)
				   if (ch == checkOK.charAt(j))
        			   break;
						   if (j == checkOK.length)
						     {
        					   allValid = false;
							   break;
        					  }
				      }  
	     		 if (!allValid)
        			{
	        		alert('Su # de celular contiene caracteres inválidos');
	        		document.frmuniv.frmdato.focus();
	        		document.frmuniv.frmdato.value = "";  
					return (false);
	        		}



		var cad = document.frmdato.txtemail.value   
		if (cad.indexOf("@",4) == -1)
		{
		alert("El campo E-MAIL contiene caracteres inválidos")
		document.frmdato.txtemail.focus();
       document.frmdato.txtemail.value = "";       
		return(false);
		} 

document.frmdato.submit();
return (true);
}