$(document).ready(function(){
//alert('land');
	$("form#submit").submit(function() {
	// we want to store the values from the form input box, then send via ajax below
	var mail = $('#email').val();
	//alert(mail);
		$.ajax({
			type: "POST",
			url: "/process.php",
			data: "mail="+ mail,
			beforeSend: function() {        
				$('#send').css('display','none');
                $('#ok').css('display','block');
            }, 
			success: function(){
				var m = $('#email').val().length;
				if(m>1){
					$.notifier.broadcast({
						msg:"L'inscription est validee !",
						skin:"rounded,red",
						duration:"3000"
					});
					$('#email').val('');
				}
			}
		});
	return false;
	});
});

