function Valida_Datos()
{
	  if (document.frmdato.nombre.value != "" )
       	 {
               var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWZYZÑXabcdefghijklmnopqrstuvwxyzñéíáóú .-";
               var checkStr = document.frmdato.nombre.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.nombre.focus();
	        		document.frmdato.nombre.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese su Nombre y Apellidos");
	       document.frmdato.nombre.focus ();
	       return(false);
         } 
		
		
		
		if (document.frmdato.direccion.value == "" )
       	 { 
          alert("Ingrese su DIRECCION");
	       document.frmdato.direccion.focus ();
	       return(false);
         }
		 
		 
		 
		 if (document.frmdato.distrito.value == "" )
       	 { 
          alert("Ingrese su DISTRITO");
	       document.frmdato.distrito.focus ();
	       return(false);
         }
		 
		  
		 
		 if (document.frmdato.telefono.value != "" )
       	 {
               var checkOK = "0123456789()-,/";
               var checkStr = document.frmdato.telefono.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 contiene caracteres inválidos');
	        		document.frmdato.telefono.focus();
	        		document.frmdato.telefono.value = "";  
					return (false);
	        		}
	      }
         else
         {     
          alert("Ingrese su TELEFONO");
	       document.frmdato.telefono.focus ();
	       return(false);
         } 
		 
		 
		 if (document.frmdato.fechaentrega.value == "" )
       	 { 
          alert("Ingrese LA FECHA DE ENTREGA DEL PEDIDO");
	       document.frmdato.fechaentrega.focus ();
	       return(false);
         }
		 
		 
		 if (document.frmdato.horario.value == "" )
       	 { 
          alert("Ingrese un HORARIO adecuado \n para dejar el pedido");
	       document.frmdato.horario.focus ();
	       return(false);
         }
		 
		 
		var cad = document.frmdato.email.value   
		if (cad.indexOf("@",4) == -1)
		{
		alert("Ingrese correctamente su E-MAIL")
		document.frmdato.email.focus();
       document.frmdato.email.value = "";       
		return(false);
		} 
		 
		 
		 
		 
		 if (document.frmdato.titulo01.value == "" )
       	 { 
          alert("Debe al menos hacer un pedido (TITULO)");
	       document.frmdato.titulo01.focus ();
	       return(false);
         }
		 
		 
		 if (document.frmdato.cantidad01.value == "" )
       	 { 
          alert("Ingrese la CANTIDAD");
	       document.frmdato.cantidad01.focus ();
	       return(false);
         }
		 
		

		
document.frmdato.submit();
return (true);
}