//Alternative way to pass thru captcha check
$(function(){
    if(document.getElementById("captcha_nojs_div") && document.getElementById("captcha") && document.getElementById("captcha_hash"))
    {
      document.getElementById("captcha_nojs_div").style.display="none";
      document.getElementById("captcha").value = hex_sha256(document.getElementById("captcha_hash").value);
    }
    
    //new version
    $(".captcha_nojs_div").css("display", "none");
    
    var captchas = $(".captcha_nojs_div").find("input[name=\"captcha\"]");
    
    for(var i=0; i<captchas.length; i++)
    {
      captchas[i].value = hex_sha256($(".captcha_nojs_div").find("input[name=\"captcha_hash\"]")[0].value);
    }
});

