function presentValue(fv,freq,rate,periods){return(fv/Math.pow((1+(rate/100/freq)),periods));}function futureValue(pv,freq,rate,periods){return(pv*Math.pow(1+(rate/100/freq),periods));}function annualizedReturn(fv,pv,years){return(fv-pv)/pv/years;}function monthlyPayment(pv,freq,rate,periods){rate=rate/100/freq;var x=Math.pow(1+rate,periods);return(pv*x*rate)/(x-1);}function annuity(fv,freq,rate,periods){rate=rate/100/freq;return(fv/((Math.pow(1+rate,periods)-1))*rate);}function calcAmortPrincipal(pymt,freq,rate,periods){rate=rate/100/freq;return(pymt*(1-(1/Math.pow(1+rate,periods)))/rate);}function toCurrency(num){num=Math.round(num*100)/100;var currstring=num.toString();if(currstring.match(/\./)){var curr=currstring.split('.');}else{var curr=[currstring,"00"];}curr[1]+="00";curr[2]="";var returnval="";var length=curr[0].length;for(var i=0;i<2;i++)curr[2]+=curr[1].substr(i,1);for(i=length;(i-3)>0;i=i-3){returnval=","+curr[0].substr(i-3,3)+returnval;}returnval=curr[0].substr(0,i)+returnval+"."+curr[2];return(returnval);}function regularDeposit(payment,freq,rate,periods){rate=rate/100/freq;return(payment*(Math.pow(1+rate,periods)-1)/rate*(1+rate));}window.onload=function(){var from_tkc=document.currcalc.from_tkc;var to_tkc=document.currcalc.to_tkc;var huilv1=document.getElementById("huilv1");var huilv2=document.getElementById("huilv2");if(!isEmpty(huilv1)){calculate(from_tkc,to_tkc,"huilv1")}if(!isEmpty(huilv2)){calculate(to_tkc,from_tkc,"huilv2")}};var eurovals=new Object();eurovals.FRF=6.559;eurovals.ATS=13.7603;eurovals.PTE=200.482;eurovals.ESP=166.386;eurovals.BEF=40.3399;eurovals.NLG=2.20371;eurovals.FIM=5.94573;eurovals.DEM=1.95583;eurovals.IEP=0.78756;eurovals.ITL=1936.27;eurovals.LUF=40.3399;eurovals.GRD=340.75;function calculate(from_tkc,to_tkc,id){var l=isEmpty(from_tkc)?document.currcalc.from_tkc:from_tkc;var k=isEmpty(to_tkc)?document.currcalc.to_tkc:to_tkc;var id=isEmpty(id)?"crncyres":id;var c=l[l.selectedIndex].text;var i=k[k.selectedIndex].text;var d;var a;var j=document.currcalc.translation1.value;var h=document.currcalc.translation2.value;var f=document.currcalc.translation3.value;if(c.match(/\(EUR\)/)!=null){var o=i.split("(");var n=o.length-1;var p=o[n].match(/(FRF|ATS|PTE|ESP|BEF|NLG|FIM|DEM|IEP|ITL|LUF|GRD)/);if(p!=null){d=1;a=eurovals[p[0]]}}if(i.match(/\(EUR\)/)!=null){var e=c.split("(");var b=e.length-1;var p=e[b].match(/(FRF|ATS|PTE|ESP|BEF|NLG|FIM|DEM|IEP|ITL|LUF|GRD)/);if(p!=null){a=1;d=eurovals[p[0]]}}if(d==null&&a==null){d=price[l[l.selectedIndex].value];a=price[k[k.selectedIndex].value]}if((d<0)||(d=="")||isNaN(d)||(a<0)||(a=="")||isNaN(a)){alert(j);return false}var g=document.currcalc.amount.value;if((g=="")||isNaN(g)||(g==0)||(g<1)){alert(h);document.currcalc.amount.focus();return false}var m=/,/g;g=g.replace(m,"");ShowResult(d,a,g,l,k,id)}function ShowResult(e,c,f,l,k,id){var i=f*c/e;var h=l;var g=k;var d=document.currcalc.translation.value;var b=''+f+" "+h.options[h.selectedIndex].text+" = "+round(i)+" "+g.options[g.selectedIndex].text+"";if((navigator.appName.indexOf("Netscape")!=-1)&&(parseInt(navigator.appVersion)==4)){var a=document.layers.crncyres2.document;a.open();a.write(b);a.close()}else{if((navigator.appName.indexOf("Microsoft")!=-1)||(parseInt(navigator.appVersion)>=5)){document.getElementById(id).innerHTML=b}else{alert(errmsg3)}}}function round(a){if(a<200000){return Math.round(a*10000)/10000}else{if(a<20000000){return Math.round(a*100)/100}else{return Math.round(a)}}}function NS47_addlines(){var a;if((navigator.appName.indexOf("Netscape")!=-1)&&(parseInt(navigator.appVersion)==4)){for(a=0;a<10;a++){document.write("
")}}}function loadResults(){if((navigator.appName.indexOf("Netscape")!=-1)&&(parseInt(navigator.appVersion)==4)){document.write('
')}else{document.write('
')}}function isEmpty(v){if(v==null){return true}else{if(v=="null"){return true}else{if(v==undefined){return true}else{if(v=="undefined"){return true}else{if(v==""){return true}else{if(v=="��ѡ��"){return true}else{return false}}}}}}};var price = new Object(); price[ 'AED:CUR'] = 3.67303; price[ 'AFN:CUR'] = 71.599175; price[ 'ALL:CUR'] = 91.8; price[ 'AMD:CUR'] = 390.941816; price[ 'ANG:CUR'] = 1.79; price[ 'AOA:CUR'] = 912; price[ 'ARS:CUR'] = 1074.3799; price[ 'AUD:CUR'] = 1.580429; price[ 'AWG:CUR'] = 1.8; price[ 'AZN:CUR'] = 1.7; price[ 'BAM:CUR'] = 1.811219; price[ 'BBD:CUR'] = 2; price[ 'BDT:CUR'] = 121.490369; price[ 'BGN:CUR'] = 1.771231; price[ 'BHD:CUR'] = 0.376896; price[ 'BIF:CUR'] = 2971.410793; price[ 'BMD:CUR'] = 1; price[ 'BND:CUR'] = 1.336041; price[ 'BOB:CUR'] = 6.909374; price[ 'BRL:CUR'] = 5.634597; price[ 'BSD:CUR'] = 1; price[ 'BTC:CUR'] = 0.000012041613; price[ 'BTN:CUR'] = 85.35416; price[ 'BWP:CUR'] = 13.837645; price[ 'BYN:CUR'] = 3.27212; price[ 'BZD:CUR'] = 2.008449; price[ 'CAD:CUR'] = 1.406741; price[ 'CDF:CUR'] = 2906.096414; price[ 'CHF:CUR'] = 0.857306; price[ 'CLF:CUR'] = 0.024795; price[ 'CLP:CUR'] = 949.52; price[ 'CNH:CUR'] = 7.26995; price[ 'CNY:CUR'] = 7.2978; price[ 'COP:CUR'] = 4152.5; price[ 'CRC:CUR'] = 503.785954; price[ 'CUC:CUR'] = 1; price[ 'CUP:CUR'] = 25.75; price[ 'CVE:CUR'] = 102.162483; price[ 'CZK:CUR'] = 22.674885; price[ 'DJF:CUR'] = 178.067757; price[ 'DKK:CUR'] = 6.74443; price[ 'DOP:CUR'] = 63.146563; price[ 'DZD:CUR'] = 132.828198; price[ 'EGP:CUR'] = 50.5891; price[ 'ERN:CUR'] = 15; price[ 'ETB:CUR'] = 131.629664; price[ 'EUR:CUR'] = 0.904124; price[ 'FJD:CUR'] = 2.32945; price[ 'FKP:CUR'] = 0.76321; price[ 'GBP:CUR'] = 0.76321; price[ 'GEL:CUR'] = 2.775; price[ 'GGP:CUR'] = 0.76321; price[ 'GHS:CUR'] = 15.499724; price[ 'GIP:CUR'] = 0.76321; price[ 'GMD:CUR'] = 71.999996; price[ 'GNF:CUR'] = 8653.908745; price[ 'GTQ:CUR'] = 7.717987; price[ 'GYD:CUR'] = 209.208198; price[ 'HKD:CUR'] = 7.778155; price[ 'HNL:CUR'] = 25.583404; price[ 'HRK:CUR'] = 6.812734; price[ 'HTG:CUR'] = 130.847226; price[ 'HUF:CUR'] = 364.337; price[ 'IDR:CUR'] = 16748.1; price[ 'ILS:CUR'] = 3.7025; price[ 'IMP:CUR'] = 0.76321; price[ 'INR:CUR'] = 85.270248; price[ 'IQD:CUR'] = 1309.883409; price[ 'IRR:CUR'] = 42100; price[ 'ISK:CUR'] = 130.46; price[ 'JEP:CUR'] = 0.76321; price[ 'JMD:CUR'] = 157.516868; price[ 'JOD:CUR'] = 0.7089; price[ 'JPY:CUR'] = 145.932; price[ 'KES:CUR'] = 129.26; price[ 'KGS:CUR'] = 86.7116; price[ 'KHR:CUR'] = 3999.464066; price[ 'KMF:CUR'] = 456.500326; price[ 'KPW:CUR'] = 900; price[ 'KRW:CUR'] = 1442.400304; price[ 'KWD:CUR'] = 0.30769; price[ 'KYD:CUR'] = 0.833171; price[ 'KZT:CUR'] = 501.205156; price[ 'LAK:CUR'] = 21663.714447; price[ 'LBP:CUR'] = 89581.37576; price[ 'LKR:CUR'] = 296.939647; price[ 'LRD:CUR'] = 199.850019; price[ 'LSL:CUR'] = 18.387202; price[ 'LYD:CUR'] = 4.83; price[ 'MAD:CUR'] = 9.511668; price[ 'MDL:CUR'] = 17.855609; price[ 'MGA:CUR'] = 4673.90265; price[ 'MKD:CUR'] = 55.675184; price[ 'MMK:CUR'] = 2098; price[ 'MNT:CUR'] = 3398; price[ 'MOP:CUR'] = 8.011832; price[ 'MRU:CUR'] = 39.737999; price[ 'MUR:CUR'] = 45.369999; price[ 'MVR:CUR'] = 15.4; price[ 'MWK:CUR'] = 1733.994776; price[ 'MXN:CUR'] = 19.916127; price[ 'MYR:CUR'] = 4.442; price[ 'MZN:CUR'] = 63.899993; price[ 'NAD:CUR'] = 18.77; price[ 'NGN:CUR'] = 1539.27; price[ 'NIO:CUR'] = 36.79111; price[ 'NOK:CUR'] = 10.309254; price[ 'NPR:CUR'] = 136.568911; price[ 'NZD:CUR'] = 1.726865; price[ 'OMR:CUR'] = 0.384982; price[ 'PAB:CUR'] = 1; price[ 'PEN:CUR'] = 3.671512; price[ 'PGK:CUR'] = 4.125987; price[ 'PHP:CUR'] = 57.014997; price[ 'PKR:CUR'] = 280.480922; price[ 'PLN:CUR'] = 3.81686; price[ 'PYG:CUR'] = 8022.63127; price[ 'QAR:CUR'] = 3.645527; price[ 'RON:CUR'] = 4.502; price[ 'RSD:CUR'] = 105.926; price[ 'RUB:CUR'] = 83.820925; price[ 'RWF:CUR'] = 1426.640965; price[ 'SAR:CUR'] = 3.751739; price[ 'SBD:CUR'] = 8.340864; price[ 'SCR:CUR'] = 14.301529; price[ 'SDG:CUR'] = 600.5; price[ 'SEK:CUR'] = 9.773696; price[ 'SGD:CUR'] = 1.3338; price[ 'SHP:CUR'] = 0.76321; price[ 'SLL:CUR'] = 20969.5; price[ 'SOS:CUR'] = 571.397532; price[ 'SRD:CUR'] = 36.5495; price[ 'SSP:CUR'] = 130.26; price[ 'STD:CUR'] = 22281.8; price[ 'STN:CUR'] = 22.688862; price[ 'SVC:CUR'] = 8.749819; price[ 'SYP:CUR'] = 13002; price[ 'SZL:CUR'] = 18.373606; price[ 'THB:CUR'] = 34.17; price[ 'TJS:CUR'] = 10.884639; price[ 'TMT:CUR'] = 3.51; price[ 'TND:CUR'] = 3.099021; price[ 'TOP:CUR'] = 2.40776; price[ 'TRY:CUR'] = 38.011197; price[ 'TTD:CUR'] = 6.779262; price[ 'TWD:CUR'] = 33.048401; price[ 'TZS:CUR'] = 2652.458; price[ 'UAH:CUR'] = 41.283674; price[ 'UGX:CUR'] = 3643.83612; price[ 'USD:CUR'] = 1; price[ 'UYU:CUR'] = 42.241163; price[ 'UZS:CUR'] = 12914.890317; price[ 'VES:CUR'] = 68.932561; price[ 'VND:CUR'] = 25806.458487; price[ 'VUV:CUR'] = 118.722; price[ 'WST:CUR'] = 2.8; price[ 'XAF:CUR'] = 593.066253; price[ 'XAG:CUR'] = 0.03126613; price[ 'XAU:CUR'] = 0.0003212; price[ 'XCD:CUR'] = 2.70255; price[ 'XDR:CUR'] = 0.752233; price[ 'XOF:CUR'] = 593.066253; price[ 'XPD:CUR'] = 0.00108215; price[ 'XPF:CUR'] = 107.890653; price[ 'XPT:CUR'] = 0.00106705; price[ 'YER:CUR'] = 245.999996; price[ 'ZAR:CUR'] = 18.737751; price[ 'ZMW:CUR'] = 27.774109; price[ 'ZWL:CUR'] = 322 ;price['BEF:CUR'] = 36.6663;price['NLG:CUR'] = 2.00303;price['UDI:CUR'] = 3.75067;price['ATS:CUR'] = 12.5072;price['PTE:CUR'] = 182.225;price['ESP:CUR'] = 151.234;price['CYP:CUR'] = 0.53195;price['EEK:CUR'] = 14.2217;price['FIM:CUR'] = 5.40428;price['GRD:CUR'] = 309.719;price['LUF:CUR'] = 36.6663;price['MTL:CUR'] = 0.390205833577212;price['PTE:CUR'] = 182.225;price['SKK:CUR'] = 27.3825;price['TRL:CUR'] = 3029245;price['DEM:CUR'] = 0.58227;price['ITL:CUR'] = 1759.941;price['VEB:CUR'] = 7126358185;price['ZWD:CUR'] = 61182767543;price['ADP:CUR'] = 0.16;price['FRF:CUR'] = 888;price['BYR:CUR'] = 0.4677;price['ECS:CUR'] = 0;price['SDR:CUR'] = 1.39;price['IEP:CUR'] = 888;price['LVL:CUR'] = 888;price['SIT:CUR'] = 888;price['ZMK:CUR'] = 888;price['LTL:CUR'] = 2.8345;price['MRO:CUR'] = 39.2101;price['TMM:CUR'] = 17499.93;price['IEP:CUR'] = 0.88518;price['RUB:CUR'] = 75.88426;price['VEF:CUR'] = 9888888888;document.getElementById("utime").innerHTML="2025/4/4 9:27:38";