function validar(){

if(!document.getElementById('policyTerms').checked) {
      document.getElementById('errorContactus').innerHTML =' You should read and accept the Terms and Conditions and Privacy Policy for sending the formulary.<br> Thanks...';
      return false;
   }

    //valido el nombre
	 if (document.contacto.contactos_name.value.length==0){
       alert("Please, enter your name.")
       document.contacto.nombre.focus()
       return false;
    }
	/*
	 if (document.contacto.email.value.length==0){
       alert("Please, enter your email.")
       document.contacto.email.focus()
       return false;
    }
*/
	if (valEmail(document.contacto.email.value)==false){
		alert("Please, enter a valid email.")
       document.contacto.email.focus()
      return false;
	}
	
	if (document.contacto.contactos_company.value.length==0){
       alert("Please, enter your Company.")
       document.contacto.contactos_company.focus()
     return false;
    }
	
	if (document.contacto.contactos_message.value.length==0){
       alert("Please, enter your message.")
       document.contacto.contactos_message.focus()
       return false;
    }

	function valEmail(valor){
	    re=/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
	    if(!re.exec(valor))    {
	        return false;
	    }
	}


    document.contacto.submit();
	
} 


