G.util.ready(function() {
	var f = G.dom.$$("cont", 0);
	var iff = G.dom.$("iframefake");
	iff.onjsonready = processJSON;
	iff.formRequest = f;
	f.onsubmit = function() {
		if(this.politicas.checked){
		return !esVacio(this.nombre, "Nombre") && !esVacio(this.email, "Email")
				&& esEmail(this.email, "Email")
				&& !esVacio(this.telefono, "Nombre")
				&& esInt(this.telefono, "Telefono")
				&& !esVacio(this.consulta, "Consulta");
		}
		else{
			mensaje("Debe aceptar las politicas de privacidad",true);
		}
		return false;
	};
	f.email.onkeypress = G.valid.email;
	f.telefono.onkeypress = G.valid.int;
});
