function LoadCountrues(){$.ajax({type:"POST",url:"/Utils/LoadCountries",data:"",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){n!=null&&(cList="",$.each(n,function(n,t){cList+='<option value="'+t.countryid+'" title="/Images/country_flag/'+t.twocharcode+'">'+t.countryname+"<\/option>"}),$(".country_glob").empty().append(cList),$(".country_glob").msDropDown())},error:function(){},complete:function(){}})}function LoadPaymentOptions(){var n=$("#cid").val(),t=1;parseInt(n)!=0&&parseInt(t)!=0&&$.ajax({type:"POST",url:"/Transaction/GetServiceBeforeLogin",data:"{'countryid':'"+n+"','txmType':'"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(parseInt(n.length)>0){$(".rescmode").empty();$.each(n,function(n,t){$(".rescmode").append("<option value='"+t.CountryCurrencyID+"'>"+t.PayModeName+"<\/option>")});$(".rescmode").change()}else $(".rescmode").empty(),$(".fee").empty().append("Rate and Service to this country is not available on weekends and holidays"),$(".fee").css({"font-weight":"bold",color:"red","margin-top":"12px"}),$(".amount").val("0.00")},error:function(){OverLayRemove()},complete:function(){OverLayRemove()}})}function ChangeService(){var n=$(".rescmode option:selected").val();n!=""?(n=n.split("|"),n.length>0&&(payOption.paymode=n[0],payOption.service=n[1],payOption.discription=$(".rescmode option:selected").text(),LoadReceiveCurrencies(payOption.paymode))):$(".currency").get(0).options[0]=new Option("No currency available","0")}function LoadReceiveCurrencies(n){msg_status=0;var t=$("#cid").val();t!=""&&n!=""&&$.ajax({type:"POST",url:"/Transaction/GetReceiveCurrencis",data:"{'countryid':"+t+",'payoption':"+n+",'fromsts':1}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(serviceChangebyAmt="",$(".currency").empty(),$(".receivecntry").html(""),n!=null&&n.length>0)$("#minPayinAmt").val(n[0].minimum_amount),$("#maxPayoutAmt").val(n[0].maximum_amount),$("#maxPayoutAmtHcy").val(n[0].maximum_amount_hcy),$("#hfIsbank").val(n[0].acc_number),$.each(n,function(n,t){$(".currency").append("<option value='"+t.CountryCurrencyID+"' title='\\Images\\currencies\\"+t.CurrencyCode+".png'>"+t.CurrencyCode+"<\/option>")}),parseInt($('.currency option:contains("'+n[0].defCurrency+'")').length)>0&&$('.currency option:contains("'+n[0].defCurrency+'")').prop("selected",!0),$(".currency").msDropDown();else $(".currency").empty().append("<option value=0>No currency available<\/option>"),OverLayRemove()},error:function(n){$(".currency").empty().append("<option value=0>No currency available<\/option>");OverLayRemove();console.log(n)},complete:function(){CheckService()}})}function CheckService(){var t=$(".currency option:selected").val(),i=$("#cid").val(),n=$(".rescmode option:selected").val(),r=$(".rescmode option:selected").text(),u=n.split("|");$.ajax({type:"POST",url:"/Transaction/CheckService",data:"{'ccid':'"+t+"','cntry':"+i+",'payMode':'"+r+"','typeOftransfer':'1','service':'"+u[0]+"','frmsts':1 }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(t){var r,u,i;console.log(t+"1");t=="-5"?(OverLayRemove(),window.location.href="/Home/Index"):t!=null&&t.length>0&&(r=n.split("|"),r[0]=t[0].PayModeid,payOption.service=t[0].PayModeid,u=r.join("|"),$(".rescmode option:selected").val(u),i=$(".rescmode option:selected").val(),i!=""&&(i=i.split("|"),i.length>0&&(payOption.paymode=i[0],payOption.service=i[1],payOption.discription=$(".rescmode option:selected").text())),$("#minPayinAmt").val(t[0].minimum_amount),$("#maxPayoutAmt").val(t[0].maximum_amount),$("#maxPayoutAmtHcy").val(t[0].maximum_amount_hcy),serviceChangebyAmt=t,t[0].Channel=="TCC"&&parseInt(msg_status)==0&&$("#tccMsg").modal({backdrop:"static"}))},error:function(n){console.log(n)},complete:function(){$(".amount").val("100.00");$(".amount").val()!=""?CalculateAmount():OverLayRemove()}})}function ClearSlabs(){$(".amount").val("");$(".RsAmt").val("")}function CalculateAmount(){var t=$(".amount").val().replace(/\,/g,""),r=0,s=$("#inputID").val(),o="",i,n;if(o=parseInt(s)==1?"Send":"Receive",parseFloat(t)>=0){if(parseFloat($("#maxPayoutAmtHcy").val())<parseFloat(t)&&parseFloat($("#maxPayoutAmtHcy").val())>0){serviceChangebyAmt.length>0&&(i=$(".rescmode option:selected").text(),n=$.grep(serviceChangebyAmt,function(n){return parseFloat(n.maximum_amount_hcy)>parseFloat($("#maxPayoutAmtHcy").val())&&n.DispName==i}),n!=""&&($("#minPayinAmt").val(n[0].minimum_amount),$("#maxPayoutAmt").val(n[0].maximum_amount),$("#maxPayoutAmtHcy").val(n[0].maximum_amount_hcy)));var u=$(".amount"),f=" The maximum amount limit for this service is "+addCommas(parseFloat($("#maxPayoutAmtHcy").val()).toFixed(2))+" AUD.",e="";ServicePopover(e,u,f);$(".showTxn").hide();OverLayRemove();r=1;SenFocus();return}if(parseFloat($("#minPayinAmt").val())>parseFloat(t)&&parseFloat($("#minPayinAmt").val())>0){serviceChangebyAmt.length>0&&(i=$(".rescmode option:selected").text(),n=$.grep(serviceChangebyAmt,function(n){return parseFloat(n.minimum_amount)<parseFloat($("#minPayinAmt").val())&&n.DispName==i}),n!=""&&($("#minPayinAmt").val(n[0].minimum_amount),$("#maxPayoutAmt").val(n[0].maximum_amount),$("#maxPayoutAmtHcy").val(n[0].maximum_amount_hcy)));var u=$(".amount"),f="Minimum amount in one transfer is - "+addCommas(parseFloat($("#minPayinAmt").val()).toFixed(2))+" AUD. ",e="";ServicePopover(e,u,f);$(".showTxn").hide();OverLayRemove();r=1;return}}if(parseInt(r)==0){if($("#Calculate").hide(),$(".feecalc").show(),$(".currency").val()=="0"){$(".col-center").show();$(".calmessage").text("Please select receive currency");OverLayRemove();ClearSlabs();return}t=$(".amount").val().replace(/\,/g,"");FeeCalculate(o)}else ClearSlabs(),$(".feecalc").hide();$(".contentbox").css("min-height","auto")}function SenFocus(){$(".amount").val("");$(".RsAmt").val("");$(".amount").focus()}function FeeCalculate(n){var t;msgFlg=0;var f=$(".currency option:selected").text(),i="",o=0,r=0;n=="Send"?i=$(".amount").val().replace(/\,/g,""):n=="Receive"&&(i=$(".RsAmt").val().replace(/\,/g,""));$(".lblSendAmt").text("0.00");var o=0,s=$("#cid").val(),h=$(".currency option:selected").val(),e=$(".currency option:selected").text(),u=$(".rescmode option:selected").val(),c=$(".rescmode option:selected").text(),l=$(".rescmode").length;u!="0"&&parseInt(l)>0&&(u=u.split("|"),u=u[0],t=0,i!=""?$.ajax({type:"POST",url:"/Transaction/GetSlabFeeAmt",data:"{'CCid':'"+s+"','amount':'"+i+"','cur':"+h+",'srv':"+u+",'type':'"+n+"','cCode':'"+e+"','txnType':'1','ser':'"+c+"','fromsts':1}",contentType:"application/json; charset=utf-8",dataType:"json",beforeSend:function(){OverLayWStatus("carousel-inner","c","","","")},success:function(u){var l,y,a,k,c,v,d,p,g,nt,w,o,s,h,b;if(u=="-5")OverLayRemove(),window.location.href="/Home/Index";else if(u[0]!=null&&u.length>0){for(MarginSlabs=u[0].CurRate.MGN,MgnFeeSlbs=u[0].CurRate.FMGN,CurrentRisk=u[0].CurRate.RiskMargin,$("#channel").val(u[0].channel_op_id),l=0;l<parseInt(u.length);l++)$(".lblFeeAUD").text(parseFloat(u[l].Fees).toFixed(2)+" AUD"),$("#hfFee").val(parseFloat(u[l].Fees).toFixed(2)),v=parseFloat(u[l].Curr_max_amount),$("#hfMaxAmt").val(v),$("#hfRate").val(parseFloat(u[l].DisplayRate)),$("#base").val(parseFloat(u[l].baseRate)),$("#mgn").val(parseFloat(u[l].Margin));if(y=addCommas(parseFloat(u[0].DisplayRate).toFixed(u[0].decplace))+" "+f,a=parseInt(u[0].decplace)-2,parseInt(a)<0&&(a=0),$("#amDcml").val(a),$("#rtDcml").val(u[0].decplace),n=="Send"){if($(".crates").show(),$(".exchange-rate-value").text("1 AUD = "+y),k=$(".currency option:selected").text(),$(".fee-value").html(parseFloat(i).toFixed(2)+" AUD to "+$(".country  option:selected").text()+" is "+$("#hfFee").val()+" AUD"),$(".rates").show(),$(".recFcy").text(f),$(".showTxn").show(),c=$("#hfFee").val(),$(".total-value").html(addCommas((Math.round((parseFloat(i)+parseFloat(c))*100)/100).toFixed(2))+" AUD"),$(".lblsendAUD").html(addCommas((Math.round(parseFloat(i)*100)/100).toFixed(2))+" AUD"),$(".lblSendAmt").text(addCommas((Math.round(parseFloat(i)*100)/100).toFixed(2))),r=parseFloat(i)+parseFloat(c),parseFloat($("#minPayinAmt").val())>parseFloat(i)){i=parseFloat(i)+parseFloat(c);r=parseFloat(r)+parseFloat(c);var o=$(".amount"),s="Minimum amount in one transfer is - "+addCommas(parseFloat($("#minPayinAmt").val()).toFixed(2))+" AUD.",h="";$(".amount").val("");$(".RsAmt").val("");ServicePopover(h,o,s);$(".showTxn").hide();return}if(t=parseFloat(i)*parseFloat($("#hfRate").val()),$(".res-value").html(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2))+" "+f),a==0&&(t=parseFloat(Math.round(t)).toFixed(0)),parseFloat($("#maxPayoutAmt").val())!=0)if(parseFloat($("#maxPayoutAmt").val())>=parseFloat(t))$(".RsAmt").val(addCommas(parseFloat(t).toFixed(2))),$(".sendamount").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2))),$("#hfTotal").val(r);else{var o=$(".RsAmt"),s="The maximum amount you can receive in "+$(".country option:selected").text()+"is "+addCommas(parseFloat($("#hfMaxAmt").val()))+" "+e+".",h="";$(".amount").val("");$(".RsAmt").val("");ServicePopover(h,o,s);$(".showTxn").hide();return}else $(".RsAmt").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2))),$(".sendamount").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2))),$("#hfTotal").val(r);if(v=$("#hfMaxAmt").val(),parseFloat($(".RsAmt").val())>parseFloat(v)&&parseFloat(v)!=0){o=$(".amount");s="The maximum amount limit for this service is  "+addCommas(parseFloat(v).toFixed(2))+" AUD.";$(".amount").val("");$(".RsAmt").val("");h="";ServicePopover(h,o,s);$(".showTxn").hide();return}}else if(n=="Receive"){$(".crates").show();$(".exchange-rate-value").text("1 AUD = "+y);var k=$(".currency option:selected").text(),c=$("#hfFee").val(),tt=$("#hfRate").val();if(t=parseFloat(i)/parseFloat($("#hfRate").val()),$(".fee-value").html(parseFloat(t).toFixed(2)+" AUD to "+$(".country  option:selected").text()+" is "+$("#hfFee").val()+" AUD"),$(".total-value").html(addCommas((Math.round((parseFloat(t)+parseFloat(c))*100)/100).toFixed(2))+" AUD"),$(".res-value").html(addCommas((Math.round(parseFloat(i)*100)/100).toFixed(2))+" "+f),$(".rates").show(),$(".recFcy").text(f),$(".showTxn").show(),d=$(".rescmode option:selected").val(),p=d.split("|"),$("#minPayinAmt").val(u[0].Curr_min_amount),$("#maxPayoutAmt").val(u[0].Curr_max_amount),$("#maxPayoutAmtHcy").val(u[0].MaxAmtHcy),payOption.service=u[0].channel_op_id,p[0]=payOption.service,g=p.join("|"),$(".rescmode option:selected").val(g),nt=t,w=0,parseFloat(u[0].Curr_max_amount)<parseFloat(i)&&parseFloat(u[0].Curr_max_amount)!=0){w=1;o=$(".RsAmt");o.popover("destroy");s="The maximum amount you can receive in "+$(".country  option:selected").text()+"is "+addCommas(parseFloat(u[0].Curr_max_amount).toFixed(2))+" "+e+".";h="";ServicePopover(h,o,s);$(".amount").val("");$(".RsAmt").val("");$(".showTxn").hide();return}if(a==0&&(i=parseFloat(Math.round(i)).toFixed(0),$(".amount").val(parseFloat(t).toFixed(2))),parseInt(w)==0)if(r=parseFloat(t)+parseFloat(c),parseFloat($("#maxPayoutAmtHcy").val())!=0){if(parseFloat($("#minPayinAmt").val())>parseFloat(t)){o=$(".amount");o.popover("destroy");s="Minimum amount in one transfer is - "+addCommas(parseFloat($("#minPayinAmt").val()).toFixed(2))+" AUD.";h="";ServicePopover(h,o,s);$(".amount").val("");$(".RsAmt").val("");$(".showTxn").hide();return}if(parseFloat($("#maxPayoutAmtHcy").val())>=parseFloat(t))$(".amount").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2))),$(".RsAmt").val(addCommas((Math.round(parseFloat(i)*100)/100).toFixed(2))),$("#hfTotal").val((Math.round((parseFloat(t)+parseFloat(c))*100)/100).toFixed(2));else{o=$(".amount");o.popover("destroy");s="The maximum amount limit for this service is "+addCommas(parseFloat($("#maxPayoutAmtHcy").val()).toFixed(2))+" AUD.";h="";$(".amount").val("");$(".RsAmt").val("");ServicePopover(h,o,s);$(".showTxn").hide();return}}else if(parseFloat($("#minPayinAmt").val())<=parseFloat(t)){if(parseFloat(t)<=0){o=$(".amount");o.popover("destroy");s="Minimum amount in one transfer is - "+addCommas(parseFloat($("#minPayinAmt").val()).toFixed(2))+" AUD. ";$(".amount").val("");$(".RsAmt").val("");h="";ServicePopover(h,o,s);$(".showTxn").hide();return}$(".amount").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2)));$(".sendamount").val(addCommas((Math.round(parseFloat(t)*100)/100).toFixed(2)));$(".RsAmt").val(addCommas((Math.round(parseFloat(i)*100)/100).toFixed(2)));$("#hfTotal").val((Math.round((parseFloat(t)+parseFloat(c))*100)/100).toFixed(2))}else{o=$(".amount");o.popover("destroy");s="Minimum amount in one transfer is - "+addCommas(parseFloat($("#minPayinAmt").val()).toFixed(2))+" AUD. ";$(".amount").val("");$(".RsAmt").val("");h="";ServicePopover(h,o,s);$(".showTxn").hide();return}}$(".caption").show();b=$(".amount").val().replace(/\,/g,"");parseFloat(b)>0&&$(".amount").val(addCommas((Math.round(parseFloat(b)*100)/100).toFixed(2)));OverLayRemove()}else{$(".calmessage").text("The transfer request exceeds the limit. To proceed with this transfer, please call  "+phone+".");$(".col-center").show();return}OverLayRemove()},error:function(n){OverLayRemove();console.log(n)},complete:function(n){OverLayRemove();console.log(n)}}):OverLayRemove())}function addCommas(n){n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2}function reset1(){$(".currency").empty();$(".amount").val("");$(".RsAmt").val("");$(".lblFeeAUD").text("0.00 AUD");$(".exchange-rate-value").text("");$(".total-value").text("0.00 AUD");$(".lblsendAUD").text("0.00 AUD");$(".res-value").text("0.00");$(".step-2").hide();$(".limitExDiv").hide()}function reset2(){$(".currency").empty();$(".RsAmt").val("");$(".lblFeeAUD").text("0.00 AUD");$(".exchange-rate-value").text("0.00");$(".total-value").text("0.00 AUD");$(".lblsendAUD").text("0.00 AUD");$(".res-value").text("0.00");$(".step-2").show();$(".sen-cntry").msDropDown();$(".limitExDiv").hide()}function ServicePopover(n,t,i){t.addClass("marked-as-having-a-popover");t.popover({html:!0,title:null,placement:function(n,t){var i=$(t).position();return i.left>=16&&i.top<=30?$(window).width()<1650?"top":"left":"top"},container:$("body"),content:i});t.popover("show")}function SetCountryLink(n){var t={countrycode:n};$.ajax({type:"POST",url:"/Home/GetCountryPageId",data:JSON.stringify(t),contentType:"application/json; charset=utf-8",beforeSend:function(){},success:function(n){$(".country-details").empty().append(n)},error:function(n){console.log(n.responseText)}})}var limits="",threshold=0,bookinglimit=0,dLimit=0,availablethreshold=0,mLimit=0,yLimit=0,dnLimit=0,mnLimit=0,ynLimit=0,pe1=0,pe2=0,pe3=0,pe7=0,daily_limit=0,monthly_limit=0,thresholdLimit=0,user_balance=0,accountbalance=0,yearly_limit=0,cursts=0,payOption={service:0,paymode:0,discription:""},cList="",NavBar=$(".navbar "),isbank,msg_status,serviceChangebyAmt;$(document).ready(function(){OverLayWStatus("body","o","","","");jQuery.validator.addMethod("noSpace",function(n){return n==""||n.trim().length!=0},"This field is mandatory");$(".sen-cntry").attr("disabled","disabled");$(".sen-cntry").msDropDown();cursts=0;LoadPaymentOptions()});$(document).on("click","#btnrefer",function(){window.location.href="/Referral/Referral"});$(document).on("change",".country_glob",function(){var n,t;$(".divDetail").hide();$(".cntry-dtl").show();$(".carousel").carousel("pause");$(".country-select").hide();$(".cntryname").text($(".country_glob option:selected").text());$(".country").empty().append(cList);$(".country").msDropDown();n=$(".country_glob").val();parseInt(n)>0&&(t=$("#country").msDropdown().data("dd"),t.setIndexByValue(n),$(".country").val(n),$(".country").change())});$(document).on("change",".country",function(){var t=$(".country").val(),n;parseInt(t)>0&&(n=$(".marked-as-having-a-popover"),n.popover("destroy"),$(".cntryname").text($(".country_glob option:selected").text()));LoadPaymentOptions();cursts=0});$(document).on("change",".rescmode",function(){reset2();ChangeService()});isbank=0;msg_status=0;serviceChangebyAmt="";$(".amount").change(function(){var f=$("#cid").val(),n,i;if(f>0){$("#inputID").val("1");var t=$(".amount").val().replace(/\,/g,""),u=$(".rescmode option:selected").text(),e=$(".rescmode option:selected").val(),r=e.split("|");serviceChangebyAmt.length>0&&(n=$.grep(serviceChangebyAmt,function(n){return parseFloat(n.minimum_amount)<=parseFloat(t)&&parseFloat(n.maximum_amount_hcy)>=parseFloat(t)&&n.DispName==u}),n==""?(n=$.grep(serviceChangebyAmt,function(n){return parseFloat(n.minimum_amount)==parseFloat(n.maximum_amount_hcy)&&parseFloat(n.maximum_amount_hcy)<=parseFloat(t)&&n.DispName==u}),n!=""&&($("#minPayinAmt").val(n[0].minimum_amount),$("#maxPayoutAmt").val(n[0].maximum_amount),$("#maxPayoutAmtHcy").val(n[0].maximum_amount_hcy),r[0]=n[0].PayModeid,i=r.join("|"),$(".rescmode option:selected").val(i))):($("#minPayinAmt").val(n[0].minimum_amount),$("#maxPayoutAmt").val(n[0].maximum_amount),$("#maxPayoutAmtHcy").val(n[0].maximum_amount_hcy),r[0]=n[0].PayModeid,i=r.join("|"),$(".rescmode option:selected").val(i)));$(".RsAmt").val("");t=="0"||t==""?($(".amount").val(""),ClearSlabs()):CalculateAmount()}else{var o=$(".country");ServicePopover("",o," Please select the receiving country.");ClearSlabs()}});$(".RsAmt").change(function(){var t=$("#cid").val(),n;if(t>0){if($("#inputID").val("0"),txtAmtSend=$(".amount").val(""),$(".RsAmt").val()==""){$(".feecalc").hide();return}n=$(".RsAmt").val().replace(/\,/g,"");parseFloat(n)>0?(trsnsway="Receive",FeeCalculate(trsnsway),$(".contentbox").css("min-height","auto"),$("#Calculate").hide()):$(".RsAmt").val("")}else{var i=$(".country");ServicePopover("",i," Please select the receiving country.");ClearSlabs()}});var MarginSlabs="",MgnFeeSlbs="",CurrentRisk="";$(document).on("change",".currency",function(){var n=$(".currency option:selected").val();cursts=n!=""&&$(".amount").val()!=""?1:0;CheckService()});$(document).on("keyup",".amount",function(n){flgv=0;var t=$(".marked-as-having-a-popover");t.popover("destroy");$(".RsAmt").val("");$(".showTxn").hide();$(".lblFeeAUD").text("0.00 AUD");$(".exchange-rate-value").text("");$(".total-value").text("0.00 AUD");$(".lblsendAUD").text("0.00 AUD");$(".res-value").text("0.00");$(".limitExDiv").hide();$(".calmessage").html("");$(".col-center").hide();(n.keyCode===13||n.which===13)&&$(this).blur()});$(document).on("keyup",".RsAmt",function(n){var t,i;flgv=0;t=n.keyCode||n.which;t!=9&&(i=$(".marked-as-having-a-popover"),i.popover("destroy"),$(".showTxn").hide(),$(".amount").val(""),$(".lblFeeAUD").text("0.00 AUD"),$(".exchange-rate-value").text(""),$(".total-value").text("0.00 AUD"),$(".lblsendAUD").text("0.00 AUD"),$(".res-value").text("0.00"),$(".limitExDiv").hide(),$(".calmessage").html(""),$(".col-center").hide(),t==13&&$(this).blur())});$(document).on("click","#showtxn",function(){var t,n,i,r;parseFloat($(".amount").val())>0&&parseFloat($(".RsAmt").val())>0&&parseInt($(".currency").val())>0?($(".calmessage").html(""),t={destination_country:$("#cid").val(),MCountry:$(".country option:selected").text(),currency:$(".currency option:selected").val(),payin_amount:$(".amount").val().replace(/\,/g,""),including_fee:0,payout_amount:$(".RsAmt").val().replace(/\,/g,""),ReciveOption:$(".rescmode option:selected").text(),MCurrency:$(".currency option:selected").text(),fees:$("#hfFee").val(),exchange_rate:$("#hfRate").val(),total_amount:$("#hfTotal").val(),BaseRate:$("#base").val(),margin:$("#mgn").val(),MGNList:MarginSlabs,FeeMgnList:MgnFeeSlbs,risk_margin:CurrentRisk,Mode_Pay:$(".rescmode option:selected").val(),stype:$("#inputID").val()},$.ajax({type:"POST",url:"/Home/SendBeforeLogin",data:"{'objBL':"+JSON.stringify(t)+"}",contentType:"application/json; charset=utf-8",dataType:"json",beforeSend:function(){OverLayWStatus("carousel-inner","c","","","")},success:function(n){n.length>0&&($(".sign-in").show(),$(".Log-in-cls").click(),$(".ban-img-main").hide(),$(".main-text").hide(),$("#carousel-example-generic").hide(),window.location.href="/Home/SignUP")},error:function(n){OverLayRemove();console.log(n)}})):$(".amount").val()==""&&(n=$(".amount"),n.popover("destroy"),i="Please enter the send amount. ",$(".amount").val(""),r="",ServicePopover(r,n,i))});$(".Log-in-cls").click(function(){window.location.href="/Home/Index"});$(".sign-up-cls").click(function(){window.location.href="/Home/Index#sign-up-cls"});$(document).on("click",".spn-refer",function(){window.location.href="/Referral/CommonReferral"});$(document).on("click",".spn-register",function(){window.location.href="/Home/howtoregister"});$(document).on("click",".site-logo",function(){window.location.href="/Home/Home"});$(".amount").bind("cut copy paste",function(n){n.preventDefault()});$(".RsAmt").bind("cut copy paste",function(n){n.preventDefault()})