function Valida_Datos()
{
	  if (document.frmdato.textnombre.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.textnombre.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.textnombre.focus();
	        		document.frmdato.textnombre.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese su Nombre");
	       document.frmdato.textnombre.focus ();
	       return(false);
         } 
		 
		 
		 
		 
		 
		 if (document.frmdato.textapellido.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.textapellido.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('Sus Apellidos contiene caracteres inválidos');
	        		document.frmdato.textapellido.focus();
	        		document.frmdato.textapellido.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese sus Apellidos");
	       document.frmdato.textapellido.focus ();
	       return(false);
         } 
		 	 
		
		var cad = document.frmdato.textemail.value   
		if (cad.indexOf("@",4) == -1)
		{
		alert("El campo E-MAIL contiene caracteres inválidos")
		document.frmdato.textemail.focus();
       document.frmdato.textemail.value = "";       
		return(false);
		} 



	    var checkOK = "1234567890.-()/ ";
        var checkStr = document.frmdato.textfono.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 TELEFONO \ncontiene caracteres inválidos');
	        		document.frmdato.textfono.focus();
	        		document.frmdato.textfono.value = "";  
					return (false);
	        		}

 	    
		
		var checkOK = "1234567890.-()/ ";
        var checkStr = document.frmdato.textfax.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 FAX \ncontiene caracteres inválidos');
	        		document.frmdato.textfax.focus();
	        		document.frmdato.textfax.value = "";  
					return (false);
	        		}
		
		
		
		

document.frmdato.submit();
return (true);
}
