//Instead of posting the form's onsubmit="return validate(this)" change it to onsubmit="return val_recaptcha(this)"
//Requires jQuery framework
	var val_status = false;
	function val_recaptcha(valForm) {
		if( typeof validate != 'function' ) {
			alert('Please include the formValidation.js script.');
			return false;
		} 
		if( val_status == false ) {
			$.post("scripts/contact_form/recaptcha_ajax.php", 
			{ recaptcha_challenge_field: $('#recaptcha_challenge_field').val(), recaptcha_response_field: $('#recaptcha_response_field').val() },
	  			function( data ){
					if( data.indexOf('VALID') != -1 ) {
						val_status = true;
						if( validate(valForm) ) {
							valForm.submit();
						}
					}
					else {
						alert('Recaptcha Validation Failed. Please try again.');
						Recaptcha.reload();
						return false;
					}
	  			}
	  		);
			return false;
	  	}
	  	else {
			return validate(valForm);
		}
	}
	function whatsRecaptcha() {

		var captcha_text = " reCAPTCHA is a free CAPTCHA service that helps to digitize books.<br><br>A CAPTCHA is a program that can tell whether its user is a human or a computer. You've probably seen them - colorful images with distorted text at the bottom of Web registration forms. CAPTCHAs are used by many websites to prevent abuse from 'bots', or automated programs usually written to generate spam. No computer program can read distorted text as well as humans can, so bots cannot navigate sites protected by CAPTCHAs.<br><br><input value='Close' type='button' onclick='closeWhatsRecaptcha()'";
		
		$('html').css('overflow','hidden');
		$('body').append('<div id="reShade" style="opacity: .5; filter: alpha(opacity=50); position: absolute; top: 0px; left: 0px; height: 2000px; width: 100%; background-color: #000; z-index: 10; display: none;"></div>');
		$('body').append('<div id="reText" style="display: none; text-align: left; width: 400px; left: '+(parseInt( $('html').width() * .5 ) - 175)+'px; position: absolute; top: 200px; z-index: 15; background-color: #FFF; margin: 0px auto;"><h2>Whats Recaptcha?</h2><p style="padding: 4px 15px;">'+captcha_text+'</p></div>');
		$('#reShade').slideDown('slow', function() { $('#reText').fadeIn('slow') });
	}
	function closeWhatsRecaptcha() {
		$('#reText').fadeOut('slow', function () { 
			$('#reText').remove();
			$('#reShade').slideUp('slow', function() { $('#reShade').remove() } );
			$('html').css('overflow','auto');	
		 } );
	}