jQuery(document).ready(function() {
	jQuery("#newsignup").validate({
		onkeyup: false,
		rules: {
			Email: {
				required: true,
				email: true,
				remote: {
					url:"includes/ajax-email.php",
					type:"post"
				}
			},
			SpamPrevention: {
				required: true,
				remote: {
					url:"includes/ajax-captcha.php",
					type:"post"
				}
			}			
		},
		messages: {
			Email: {
				remote: "This email already subscribed with us."	
			}
		},
	errorPlacement: function(error, element) {
	error.appendTo( element.nextAll("p") );
	}
	});
});