/*
	captcha/jquery.captcha.startup.js 
	for LHU/CHSD
	Carl Jagt, September 2011
*/

jQuery.fn.captcha = function() {
	var o = $(this[0]);
	var validator = jQuery(o).validate({
		rules: {
			captchaans: {
				required: true,
				remote: {
					url: '/captcha/captcha.validate.asp'+new Date().getTime(),
					type: 'post'
				}
			}
		},
		messages: {
			captchaans: 'Please check your math.'
		},
		submitHandler: function(form){
			jQuery(form).ajaxSubmit({
				target: "#captchaMessage"
			});
		}
	});
};


