"}});b.find("input[name='email']").each(function(){var d=$(this).val();var c=new RegExp(/^\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b$/i).test(d);if(!c){a+="Please enter a valid email address
"}});b.find("input[name='phone']").each(function(){var d=$(this).val();var c=new RegExp(/^[0-9]+$/).test(d);if(!c){a+="Please enter a valid phone number
"}});if(a!==""){$("#info-box").html(a);$("#info-modal").modal("show");return}$("#ajaxLoad").show();$.ajax({type:"POST",url:b.attr("action"),data:b.serialize(),success:function(c){if(c==="success"){$("#info-box").html("Referral link has been sent successfully. Benefit will apply once referred person has made the first payment.");$(".withdraw-content").slideUp();$("body").toggleClass("openPopup");$(".close-popup").removeClass("active")}else{$("#info-box").html(c)}$("#info-modal").modal("show");$("#ajaxLoad").fadeOut("100")}});return false});$("#dismissNotification").click(function(){var a=$(this).parents("form");$("#ajaxLoad").show();$.ajax({type:"POST",url:a.attr("action"),data:a.serialize(),success:function(b){if(b==="success"){}$("#ajaxLoad").fadeOut("100")}});return true})});