$(function(){

	
			new ajaxSendForm({
			baseUrl: 	base,
			attachTo: 	$('.nieuwsbrief-s form'),
			succes: 	function(data, attachedTo, url, method){ $(attachedTo).html(data); }
		})
			.addCheck('naam', checkNonEmpty, function(s, err, el){ s==false?$(el).addClass('error'):$(el).removeClass('error');$(el).blur();$(el).parents('form').find('.err').show(); })
			.addCheck('email', checkEmail, function(s, err, el){ s==false?$(el).addClass('error'):$(el).removeClass('error');$(el).blur();$(el).parents('form').find('textarea').blur();$(el).parents('form').find('.err').show(); });

});
