$(document).ready(function(){
	$('#nb_form').submit(function(){
		ok=true;
		$('.nbinput',this).each(function(){
			if(this.value==""){
				ok = false;
			}
		});
		if(ok == false){
			alert('U heeft geen emailadres ingevuld');
		}else{
			email = $('input[@name="email"]').val();
			$.post("./inc/submitnieuwsbrief.php",
				{email:email},function(data){
					alert(data);
					$('.nbinput',this).each(function(){
						this.value="";
					});
				});
			
		}
		return false;
	});
});