$(function () {
	

	$('form.validates').validate({
		errorPlacement: function(error, element) {
		    $(element).parent().append(error);
	 	}/*,
		invalidHandler : function(form, validator) 
		{
			alert('There was some information missing in the form. Please see the highlighted fields.');
		}*/
	});
	
	
	$('a.submit').click(function (e) {
		e.preventDefault();
		$(this).parent().parent().submit();
	});
});