	$(function(){
		
		$.metadata.setType("attr", "validate");
		
		$("#frmRequest").validate({
							  
							
			 submitHandler: function(form) {
				 $("#securitycode_error").html("");
				 $.post('/post.php',{action : 'captchaAction', 
									 security_code: $("#security_code").val()},function(data){
											if (data !=""){
												$("#securitycode_error").html('<span class="bodytext_red">Please enter a valid security code</span>');
											}else{
												form.submit();
											}
				});
			}
		});
			
		$("#security_code").live('change',function(){
			$("#securitycode_error").html("");
		});
		
	

	});

