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('The Name field contains invalid characters');
	        		document.frmdato.txtnombre.focus();
	        		document.frmdato.txtnombre.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Enter your Name");
	       document.frmdato.txtnombre.focus ();
	       return(false);
         } 
		 
		 
		 
		 
		 
		 if (document.frmdato.txtapellidos.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.txtapellidos.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('The Last Name field contains invalid characters');
	        		document.frmdato.txtapellidos.focus();
	        		document.frmdato.txtapellidos.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Enter your Last Name");
	       document.frmdato.txtapellidos.focus ();
	       return(false);
         } 
		 
		 
		 
	
	if (document.frmdato.txttelefono.value != "" )
       	 {
			 
			 var checkOK = "1234567890.-()/ ";
        var checkStr = document.frmdato.txttelefono.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('The Phone field contains invalid characters');
	        		document.frmdato.txttelefono.focus();
	        		document.frmdato.txttelefono.value = "";  
					return (false);
	        		}
		 
		 }
         else
         {     
          alert("Enter your Phone");
	       document.frmdato.txttelefono.focus ();
	       return(false);
         }
		 
		 
		 
		 
		 
		 
		
		var cad = document.frmdato.txtemail.value   
		if (cad.indexOf("@",4) == -1)
		{
		alert("The E-mail field contains invalid characters")
		document.frmdato.txtemail.focus();
       document.frmdato.txtemail.value = "";       
		return(false);
		} 
		 
	        

document.frmdato.submit();
return (true);
}