jQuery.validator.addMethod("captchacode", function(value, element) {
    if ( value.length >= 4 ) {
        var a = $.ajax({
            async: false,
            type: "GET",
            url: "/imports/securimage/securimage_ajax_validate.php",
            dataType: "text",
            data: {
                code: value
            }
        });
        if ( a.responseText == value ) {
            return true;
        }
    }
	return false;
}, $.validator.messages.captchacode);

jQuery(function() {
    
    $(".form").validate();


});
