       function validateCaptcha()
        {
            challengeField = $("input#recaptcha_challenge_field").val();
            responseField = $("input#recaptcha_response_field").val();
            //alert(challengeField);
            //alert(responseField);
            //return false;
            var html = $.ajax({
            type: "POST",
            url: "/verifyrecaptcha.php",
			//url: "http://www.google.com/recaptcha/api/verify",
            data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField,
            async: false
            }).responseText;
			
			//alert(html);

            if (html.replace(/^\s+|\s+$/, '') != -1)
            {
				//alert("successful");
				document.getElementById('recapcode').value = html.replace(/^\s+|\s+$/, '');
                //$("#captchaStatus").html(" ");
                // Uncomment the following line in your application
                return true;
            }
            else
            {
				//alert("response is " + html);
                //$("#captchaStatus").html("Your captcha is incorrect. Please try again");
                Recaptcha.reload();
                return false;
            }
        }

