jQuery(function(){
	jQuery("#refreshimg").click(function(){
		jQuery.post('newsession.php');
		jQuery("#captchaimage").load('image_req.php');
		return false;
	});
	
	jQuery("#captchaform_WB").validate({
		rules: {
			captcha: {
				required: true,
				remote: {
        				url: "js/webboard_js/process.php"
						}
			}
		},
		messages: {
			captcha: "<BR><BR>Correct captcha is required. Click the captcha to generate a new one"	
		},
		submitHandler: function() {
			
			document.captchaform_WB.submit();
			
		},
		onkeyup: true
	});
	
});

