Affiliate marketer Gadget 2020


BFC Smart Money

For an optimal and smooth site experience, it is advisable you access this website using Chrome, Firefox, or Internet Explorer version 11 or higher.

For an optimal and smooth site experience, it is advisable you access this website using Chrome, Firefox, or Internet Explorer version 11 or higher.’ + document.getElementsByTagName(“BODY”)[0].innerHTML; document.getElementById(‘onlyie’).style.display = “block”; } //IE Error for Lower than 8 ends ]]>

BFC Smart Money

2) { $(“#amount”).val(number[0]+’.’+number[1].substring(0,3)); } }); ]]> 0) callQuote($(this)); else if(recvAmt > 0) callQuote2($(this)); }); var timer = 0; function callQuote($this) { var sendAmount = $(‘#sendAmount’).val(), recvCurrency = $(‘#recvCurrency’).val(); if(sendAmount != ” && recvCurrency != ”) { document.getElementById(“recvAmount”).innerHTML = “”; $(‘#loader-dup’).show(); clearTimeout(timer); timer = setTimeout(function(){ getQuote(sendAmount, recvCurrency); //alert(“delay”); }, 2000 ); } } function callQuote2($this) { var receiveAmount = $(‘#receiveAmount’).val(), recvCurrency = $(‘#recvCurrency’).val(); if(isNaN(receiveAmount) || parseFloat(receiveAmount) -1) { var localCurrencyCode = jsonData.trim().split(“~”)[2]; var fxrate11 = jsonData.trim().split(“~”)[4]; var recvAmount = jsonData.trim().split(“~”)[7]; var prevrecvAmount = recvAmount; var currDenomination = getCurrencyDenomination(recvCurrency); recvAmount -= (recvAmount % currDenomination); sendAmount = round((recvAmount * fxrate11), 3); var recvCurrencyCode = jsonData.trim().split(“~”)[8]; var amtBeforeVat = jsonData.trim().split(“~”)[9]; var amtAfterVat = jsonData.trim().split(“~”)[10]; var vatAmount = jsonData.trim().split(“~”)[11]; var vatPercentage = (jsonData.trim().split(“~”)[12]) == “” ? “5” : (jsonData.trim().split(“~”)[12]); var subSidyAmt = jsonData.trim().split(“~”)[13]; var deliveryAmt = jsonData.trim().split(“~”)[14]; jsonData = jsonData.replace(prevsendAmount+”~”+localCurrencyCode,sendAmount+”~”+localCurrencyCode); jsonData = jsonData.replace(prevrecvAmount+”~”+recvCurrencyCode,recvAmount+”~”+recvCurrencyCode); document.getElementById(“recvAmountTravel”).innerHTML = ” “+parseFloat(fxrate11).toFixed(4)+” “+recvCurrencyCode; document.getElementById(“tmovatpercent”).innerHTML = “@”+vatPercentage+”% “; document.getElementById(“tmovatAmount”).innerHTML = ” “+localCurrencyCode+” “+vatAmount; //document.getElementById(“vatAmount1”).innerHTML = vatAmount; document.getElementById(“deliveryAmttmo”).innerHTML = ” “+localCurrencyCode+” “+deliveryAmt; document.getElementById(“subsidyAmt”).innerHTML = ” “+localCurrencyCode+” “+subSidyAmt; $(‘#receiveAmount’).val(recvAmount); $(‘#sendAmount’).val(sendAmount); $(‘#fxRateHid’).val(fxrate11); $(‘#recvAmountHid’).val(recvAmount); $(‘#recvCurrencyCodeHid’).val(recvCurrencyCode); $(‘#currencyHid’).val(jsonData.trim()); } var amt = 0; amt = sendAmount + round(parseFloat(amtAfterVat),3) – round(parseFloat(subSidyAmt),3); //alert(“qwqewe”+$(‘#sendAmount’).val()); //var amt = parseFloat($(‘#sendAmount’).val()); //var amt = $(‘#sendAmount’).val(); getRateAmountDetails(amt,fxrate11); $(‘#loader-dup’).hide(); } } function getQuote2(receiveAmount, recvCurrency) { if(receiveAmount != ” && recvCurrency != ”) { var opt = $(“input[name=’transfertype’]:checked”).val(); console.log($(“input[name=’transfertype’]:checked”).val()); var jsonData = jQuery.ajax({url: “https://bfcsmartmoney.com/transfer/secure/getQuoteForTmo.jsp?receiveAmount=” + receiveAmount +”&quoteDir=receive&recvCurrency=”+recvCurrency+”&pickupOption=”+opt+ “&isHomePage=Y&sid=”+Math.random(), dataType:”json”, async: false}).responseText; if(jsonData.indexOf(“~”) > -1) { var sendAmount = jsonData.trim().split(“~”)[1]; var localCurrencyCode = jsonData.trim().split(“~”)[2]; var fxrate11 = jsonData.trim().split(“~”)[4]; var recvAmount = jsonData.trim().split(“~”)[7]; var recvCurrencyCode = jsonData.trim().split(“~”)[8]; var amtBeforeVat = jsonData.trim().split(“~”)[9]; var amtAfterVat = jsonData.trim().split(“~”)[10]; var vatAmount = jsonData.trim().split(“~”)[11]; var vatPercentage = (jsonData.trim().split(“~”)[12]) == “” ? “5” : (jsonData.trim().split(“~”)[12]); var subSidyAmt = jsonData.trim().split(“~”)[13]; var deliveryAmt = jsonData.trim().split(“~”)[14]; //$(‘#amtBeforeVat’).val(amtBeforeVat); //$(‘#amtAfterVat’).val(amtAfterVat); $(‘#tmovatpercent’).val(vatPercentage); $(‘#subSidyAmt’).val(subSidyAmt); $(‘#tmovatAmount’).val(vatAmount); //$(‘#vatAmount1’).val(vatAmount); $(‘#bfcDeliveryCharge’).val(deliveryAmt); //$(‘#totalSendAmt’).val(totalSendAmt); $(‘#sendAmount’).val(sendAmount); $(‘#receiveAmount’).val(recvAmount); $(‘#fxRateHid’).val(fxrate11); $(‘#recvAmountHid’).val(recvAmount); $(‘#recvCurrencyCodeHid’).val(recvCurrencyCode); $(‘#currencyHid’).val(jsonData.trim()); document.getElementById(“recvAmountTravel”).innerHTML = ” “+parseFloat(fxrate11).toFixed(4)+” “+recvCurrencyCode; document.getElementById(“tmovatpercent”).innerHTML = “@”+vatPercentage+”% “; document.getElementById(“tmovatAmount”).innerHTML = ” “+localCurrencyCode+” “+vatAmount; //document.getElementById(“vatAmount1”).innerHTML = vatAmount; document.getElementById(“deliveryAmttmo”).innerHTML = ” “+localCurrencyCode+” “+deliveryAmt; document.getElementById(“subsidyAmt”).innerHTML = ” “+localCurrencyCode+” “+subSidyAmt; } var amt = 0; amt = parseFloat(sendAmount) + round(parseFloat(amtAfterVat),3) – round(parseFloat(subSidyAmt),3); //alert(“qwqewe1241″+$(‘#sendAmount’).val()); //var amt = parseFloat($(‘#sendAmount’).val()); //var amt = $(‘#sendAmount’).val(); getRateAmountDetails(amt,fxrate11); $(‘#loader-dup’).hide(); } } var prvSendAmt = -1; var prvRevAmt = -1; function getRateAmt(data){ var sendAmt = document.getElementById(‘amount’); var revAmt = document.getElementById(‘recvAmount1’); if(prvSendAmt != sendAmt.value || prvRevAmt != revAmt.value){ if(data == ‘CalculateFxAmount’){ getRateAmount(data); }else if(data == ‘CalculateLocalAmount’){ getRateAmount(data); } } } $(“#amount”).keypress(function(event) { if (event.keyCode === 13) { var sendAmt = document.getElementById(‘amount’); var revAmt = document.getElementById(‘recvAmount1’); if(prvSendAmt != sendAmt.value || prvRevAmt != revAmt.value){ getRateAmount(‘CalculateFxAmount’); } } }); $(“#recvAmount1”).keypress(function(event) { if (event.keyCode === 13) { var sendAmt = document.getElementById(‘amount’); var revAmt = document.getElementById(‘recvAmount1’); if(prvSendAmt != sendAmt.value || prvRevAmt != revAmt.value){ getRateAmount(‘CalculateLocalAmount’); } } }); function getRateAmountDetails(amount,rate) { var xmlHttp=null; if (window.XMLHttpRequest){ xmlHttp=new XMLHttpRequest() } else if (window.ActiveXObject){ xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”) } if (xmlHttp==null){ alert (“Browser does not support HTTP Request”) return } // if(isNaN(amount) || parseFloat(amount) return version number return parseInt(ua.substring(msie + 5, ua.indexOf(‘.’, msie)), 10); } var trident = ua.indexOf(‘Trident/’); if (trident > 0) { // IE 11 => return version number var rv = ua.indexOf(‘rv:’); return parseInt(ua.substring(rv + 3, ua.indexOf(‘.’, rv)), 10); } var edge = ua.indexOf(‘Edge/’); if (edge > 0) { // Edge (IE 12+) => return version number return parseInt(ua.substring(edge + 5, ua.indexOf(‘.’, edge)), 10); } // other browser return false; } var currDeno = [[“AED”,”5″], [“ARS”,”5″], [“AUD”,”5″], [“BBD”,”5″], [“BDT”,”1000″], [“BGN”,”5″], [“BHD”,”1″], [“BMD”,”2″], [“BND”,”5″], [“BRL”,”5″], [“BZD”,”50″], [“CAD”,”5″], [“CHF”,”10″], [“CLP”,”1000″], [“CNY”,”5″], [“COP”,”2000″], [“CRC”,”1000″], [“CYP”,”10″], [“CZK”,”100″], [“DKK”,”100″], [“DOP”,”50″], [“EGP”,”5″], [“EUR”,”5″], [“FJD”,”5″], [“GBM”,”5″], [“GBP”,”10″], [“GEL”,”10″], [“GIP”,”10″], [“HKD”,”10″], [“HRK”,”10″], [“HUF”,”1000″], [“IDR”,”5000″], [“ILS”,”20″], [“INR”,”100″], [“IQD”,”10″], [“IQM”,”10″], [“IRR”,”10″], [“ISK”,”500″], [“JMD”,”100″], [“JOD”,”5″], [“JPY”,”1000″], [“KES”,”50″], [“KRW”,”1000″], [“KWD”,”5″], [“LBP”,”1000″], [“LKR”,”500″], [“MAD”,”20″], [“MUR”,”100″], [“MXN”,”20″], [“MYR”,”5″], [“NAD”,”20″], [“NGN”,”10″], [“NOK”,”100″], [“NPR”,”500″], [“NZD”,”5″], [“OMR”,”5″], [“PEN”,”10″], [“PHP”,”100″], [“PKR”,”500″], [“PLN”,”10″], [“QAR”,”5″], [“RON”,”5″], [“RUB”,”100″], [“SAR”,”5″], [“SDD”,”10″], [“SDG”,”10″], [“SEK”,”20″], [“SGD”,”2″], [“SYP”,”100″], [“THB”,”100″], [“TND”,”5″], [“TRY”,”5″], [“TTD”,”5″], [“TWD”,”100″], [“USD”,”1″], [“USM”,”1″], [“VND”,”10000″], [“XCD”,”5″], [“YER”,”100″], [“ZAR”,”10″]]; let label = document.querySelector(‘#home-label’); if(label!=null) if(label.textContent.trim() === ‘HomeDelivery’){ label.textContent = ‘Home Delivery’; } function getCurrencyDenomination(currency) { var i; for(i=0;i 0 && delivery_type == “CPS”) { var roundto = “10”; if(recvCntry.value.split(“-“)[1] == ‘IDR’) roundto = 5000; else if(recvCntry.value.split(“-“)[1] == ‘CZK’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘DKK’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘NOK’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘HUF’) roundto = 1000; else if(recvCntry.value.split(“-“)[1] == ‘INR’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘JMD’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘JPY’) roundto = 1000; else if(recvCntry.value.split(“-“)[1] == ‘RUB’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘THB’) roundto = 100; else if(recvCntry.value.split(“-“)[1] == ‘VND’) roundto = 1000; else roundto = 10; if(amount.value >= roundto) { document.getElementById(“recvAmount1”).value = roundto * Math.floor((amount.value)/roundto); $(‘#loader’).show(); } else { document.getElementById(‘panel-body’).innerHTML = “

  • ” +”Minimum amount should be ” +roundto+””; $(‘#loader’).hide(); return; } } } /* if(remittanceFree) remittance = “free”; */ var xmlHttp=null; var response; if (window.XMLHttpRequest){ xmlHttp=new XMLHttpRequest() } else if (window.ActiveXObject){ xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”) } if (xmlHttp==null){ alert(“Browser does not support HTTP Request”) $(‘#loader’).hide(); return; } if(amount.value == ”){ $(‘#loader’).hide(); return; } if(isNaN(amount.value) || parseFloat(amount.value) 9) { amount.value = “”; alert(“Invalid sending Amount”); $(‘#loader’).hide(); return; } if(amount.value > 999999999) { amount.value = “”; alert(“Invalid sending Amount”); $(‘#loader’).hide(); return; } // for(var i=0;i<=(amount.value.length)-1;i++) // { // if(amount.value.charAt(i)==".") // { // amount.value = ""; // alert("Invalid sending Amount"); // $('#loader').hide(); // return; // } // } var url ="https://bfcsmartmoney.com/transfer/secure/getStatisticsFromRoutingEngine.jsp" var param ="amount="+amount.value; param = param + "&isHomePage=true"; param = param + "&deliveryType="+delivery_type; param = param + "&remittance="+remittance; param = param + "&sendCntry="+sendCntry; param = param + "&recvCntry="+recvCntry.value; param = param + "&typeOfQuote="+typeOfQuote; param = param + "&sid="+Math.random(); xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { response = (xmlHttp.responseText).trim() + "|"; if(response=='-1|') { alert("something wrong"); $('#loader').hide(); return; } else if(response.indexOf("Error") == -1) { document.getElementById('panel-body').innerHTML ="
  • Currency Rate (1 BHD) :
  • Transfer Fee : BHD 0.000
  • VAT Amount : BHD 0.000
  • Subsidy Amount : BHD 0.000
  • Amount Payable : BHD 0.000″; var str = round(parseFloat(response.split(“|”)[1]),3); document.getElementById(‘transferFee’).innerHTML = response.split(“|”)[1]; if(CTS) { document.getElementById(‘recvAmount1’).value = response.split(“|”)[2]; //document.getElementById(‘amtPayable’).innerHTML = response.split(“|”)[10]+ ” “+ response.split(“|”)[6]; document.getElementById(‘amount’).value = response.split(“|”)[5]; if(response.split(“|”)[5] < "1") alert('Send amount Cannot be less than 1 BHD'); } else { //document.getElementById('amtPayable').innerHTML = response.split("|")[10]+ " "+ response.split("|")[6]; document.getElementById('recvAmount1').value = response.split("|")[2]; document.getElementById('amount').value = response.split("|")[5]; } prvSendAmt = response.split("|")[5]; prvRevAmt = response.split("|")[2]; //document.getElementById('txnFee').innerHTML = response.split("|")[1]+ " "+ response.split("|")[6]; /* document.getElementById('exRate1').innerHTML = response.split("|")[0]+ " "+response.split("|")[13]; */ /* Multiplication factor shown */ if(response.split("|")[15]=="BFC") { $("#exRate1").html(response.split("|")[16] ) } else { $("#exRate1").html(response.split("|")[0]) } //document.getElementById('displayRate').value = response.split("|")[14]; //document.getElementById('exchRate').value = response.split("|")[0]; //document.getElementById('transfee').value = response.split("|")[1]; //document.getElementById('recvAmount').value = response.split("|")[2]; //document.getElementById('amountAfterVAT').value = response.split("|")[3]; //document.getElementById('amountBeforeVAT').value = response.split("|")[4]; //document.getElementById('localAmount').value = response.split("|")[5]; //document.getElementById('localCurrency').value = response.split("|")[6]; //document.getElementById('otherFees').value = response.split("|")[7]; //document.getElementById('serviceTax').value = response.split("|")[8]; document.getElementById('subsidyAmount').innerHTML = response.split("|")[6]+" "+response.split("|")[9]; document.getElementById('totalSettlementAmount').innerHTML = response.split("|")[6]+" "+response.split("|")[10]; document.getElementById('vatamount').innerHTML = " "+response.split("|")[6]+" "+response.split("|")[11]; var varpercent = (response.split("|")[12]) == "" ? "5" : (response.split("|")[12]); document.getElementById('vatpercentage').innerHTML = "@"+varpercent+"%"; //document.getElementById('fxcurrency').value = response.split("|")[13]; $('#loader').hide(); } else if( response.indexOf("LimitError") == 0){ if(response.split("~")[1] != undefined && response.split("~")[2] != undefined) { document.getElementById('panel-body').innerHTML = "
  • “+”Please try with a different amount within the transfer limits. (“+response.split(“~”)[1]+” to “+response.replace(“|”,””).split(“~”)[2]+”)”; } else { document.getElementById(‘panel-body’).innerHTML = “
  • “+”Please try with a different amount within the transfer limits.”; } $(‘#loader’).hide(); } else{ document.getElementById(‘panel-body’).innerHTML = “
  • “+”Error while getting the Conversion rate”+””; $(‘#loader’).hide(); } } } if(document.getElementById(‘recvCntry’).value != “”){ xmlHttp.open(“POST”,url,true); xmlHttp.setRequestHeader(“Content-type”,”application/x-www-form-urlencoded”); xmlHttp.send(param); }else { alert(“Please select receiving country”); document.getElementById(‘recvAmount1’).value = “”; $(‘#loader’).hide(); } } function round(value, exp) { if (typeof exp === ‘undefined’ || +exp === 0) return Math.round(value); value = +value; exp = +exp; if (isNaN(value) || !(typeof exp === ‘number’ && exp % 1 === 0)) return NaN; // Shift value = value.toString().split(‘e’); value = Math.round(+(value[0] + ‘e’ + (value[1] ? (+value[1] + exp) : exp))); // Shift back value = value.toString().split(‘e’); return +(value[0] + ‘e’ + (value[1] ? (+value[1] – exp) : -exp)); } /* function equalToEventTarget() { return this == document.event.target; } var tooltip = document.select(“#tooltip”); var tooltipWithContent = document.selectAll(“#tooltip, #tooltip *”); document.select(“body”).on(“click”,function(){ var outside = tooltipWithContent.filter(equalToEventTarget).empty(); if (outside) { tooltip.classed(“hidden”, true); } }); */ $(function(){// document.ready shorthand $(document).on(‘click’,’#offerModel’,function() { $(‘#offerModel’).fadeOut(‘3000’,function(){//use 3000 in place of 300m $(‘#offerModel’).remove(); }); return false; }); }); /*–scroll top on load page –*/ $(function(){ var scroll_pos=(0); $(‘html, body’).animate({scrollTop:(scroll_pos)}, ‘2000’); }); $(document).ready(function(){ $(‘#DELTYPE1’).change(function(){ $(“#amount”).val(”) $(“#recvAmount1″).val(”) document.getElementById(‘exRate1’).innerHTML = ” “; var CTS = document.getElementById(“DELTYPE1″).checked; if(CTS) { /* var currency = $(‘#recvCntry’).val().split(‘-‘)[1]; document.moneyTransfer.amount.placeholder = ‘Amount to Send (GBP)’; document.moneyTransfer.recvAmount1.placeholder = ‘Amount to Receive (‘+currency+’)’; document.moneyTransfer.amount.value = ”; document.moneyTransfer.recvAmount1.value = ”; $(‘#sendAmtLabel’).html(‘Send Amount’); $(‘#recvAmtLabel’).html(‘Receive Amount’); if(document.getElementById(‘txnFee’) != null) document.getElementById(‘txnFee’).innerHTML = ‘GBP 0.00’; if(document.getElementById(‘amtPayable’) != null) document.getElementById(‘amtPayable’).innerHTML = ‘0.00 GBP’; $(‘#exRate1’).val(‘Currency Rate: 1 GBP = 00.0000’); */ var currency = $(‘#recvCntry’).val().split(‘-‘)[1]; if(document.getElementById(‘transferFee’) != null) document.getElementById(‘transferFee’).innerHTML = ‘0.000’; if(document.getElementById(‘vatamount’) != null) document.getElementById(‘vatamount’).innerHTML = ‘BHD 0.000’; if(document.getElementById(‘subsidyAmount’) != null) document.getElementById(‘subsidyAmount’).innerHTML = ‘BHD 0.000’; if(document.getElementById(‘totalSettlementAmount’) != null) document.getElementById(‘totalSettlementAmount’).innerHTML = ‘BHD 0.000’; } }); $(‘#DELTYPE2’).change(function(){ $(“#amount”).val(”) $(“#recvAmount1″).val(”) document.getElementById(‘exRate1’).innerHTML = ” “; var CPS = document.getElementById(“DELTYPE2”).checked; if(CPS) { if(document.getElementById(‘transferFee’) != null) document.getElementById(‘transferFee’).innerHTML = ‘0.000’; if(document.getElementById(‘vatamount’) != null) document.getElementById(‘vatamount’).innerHTML = ‘BHD 0.000’; if(document.getElementById(‘subsidyAmount’) != null) document.getElementById(‘subsidyAmount’).innerHTML = ‘BHD 0.000’; if(document.getElementById(‘totalSettlementAmount’) != null) document.getElementById(‘totalSettlementAmount’).innerHTML = ‘BHD 0.000’; } }); }); $(document).click(function(){ $(‘.tooltipslide’).hide(); }); $(‘.tooltipbtn’).click(function(e){ $(this).siblings(‘.tooltipslide’).toggle(); e.stopPropagation(); return false; }); $(‘.modal-content .offerModal’).click(function(e){ e.stopPropagation(); }); $( “li.tmo” ).find( “label” ).css( “display”, “none” ); $( “li”).find(“.currencyBtn”).css( “display”, “none” ); ]]>
  • Source

    Leave a Comment