$(document).ready(function(){	
	$('#subscribe').click(function() {
		validation1 = $('#email_newsletter').valid();
		validation2 = $('#newsletter').valid();		
		if(validation1 == 1 && validation2 == 1) {
			var email = $('#email_newsletter').val();
			 $.ajax({
					type: "POST",
					url: "/newsletter/subscribe/email/" + email ,
					data: "",
					success: function(html) {					
						$('#response').html(html);					
					},
					error: function(html) {
						$('#response').html(html);
					}
			});	
		}
	});
});
