//Validate the Recaptcha' Before continuing with POST ACTION
function validateCaptcha()
{
    challengeField = $("input#recaptcha_challenge_field").val();
    responseField = $("input#recaptcha_response_field").val();
 
    var html = $.ajax({
        type: "POST",
        url: "verify.php",
        data: "form=signup&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", "mail_index.php");
        $("#submit").attr("value", "Enviar");
        //Indicate a Successful Captcha
        $("#captcha-status").html("<p class=\"green bold\">Código correcto, presione Enviar para mandar sus datos.</p>");
    } else {
        $("#captcha-status").html("<p class=\"red bold\">El código Captcha ingresado no es correcto, por favor intente de nuevo.</p>");
        Recaptcha.reload();
    }
}
