 $(document).ready(function () {
   $("#Submit").click(function() 
   {
    result = ValidateForm('frm', false);
    if (!result)
    {
      return false;
    }
    captcha = $("input[name='captcha']").val();
    //alert(captcha);
    //alert($.cookie('captcha'));
    
    if (captcha.toLowerCase() == $.cookie('captcha').toLowerCase())
    {
      $("#frm").submit();
    }
    else
    {
      alert('Code entered does not match the image');
    }
    return false;
   });
 });
