$(function(){
	$(".email-form, .data-form").validate();
	$('.email-form, .data-form').submit(function(e){
		if ($(this).valid()) {
			$.ajax({
				type: "POST",
				url: "php/send.php",
				data: $(this).serialize(),
				success: function(msg){
					alert(msg);
				}
			});
		}
		e.preventDefault();
	});
});
