//Validate the Recaptcha' Before continuing with POST ACTION
function cursorWait(){
		document.body.style.cursor = "wait";
}
function cursorClear(){
		document.body.style.cursor = "default";
}

function validateCaptcha()
{
	challengeField = $("input#recaptcha_challenge_field").val();
	responseField = $("input#recaptcha_response_field").val();
	//console.log(challengeField);
	//console.log(responseField);
	//return false;
	var html = $.ajax({
		type: "POST",
		url: "includes/php/ajax.recaptcha.php",
		data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField,
		async: false
		}).responseText;
	
	//console.log( html );
	if(html == "success") {
		//Add the Action to the Form
		$("form").attr("action", "");
		//Indicate a Successful Captcha
		$("#captchaStatus").html("Success!");
		// Uncomment the following line in your application
		Recaptcha.reload();
		return true;
	} else {
		$("#captchaStatus").html("Code was incorrect. Please try again.");
		Recaptcha.reload();
		return false;
	}
}	
// JavaScript Document
