var cc_currencies = new Object; cc_currencies.EUR = {"title":"Euro", "value":"1.00000000", "code":"EUR", "symbol_left":"", "symbol_right":"€", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.GBP = {"title":"Pounds", "value":"0.89385000", "code":"GBP", "symbol_left":"£", "symbol_right":"", "decimal_point":".", "thousands_point":",", "decimal_places":"2" }; cc_currencies.DKK = {"title":"Dänische Krone", "value":"7.44110000", "code":"DKK", "symbol_left":"", "symbol_right":"Kr", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.USD = {"title":"Dollar", "value":"1.48630000", "code":"USD", "symbol_left":"$", "symbol_right":"", "decimal_point":".", "thousands_point":",", "decimal_places":"2" }; cc_currencies.JPY = {"title":"Japanischer Yen", "value":"132.05000000", "code":"JPY", "symbol_left":"Yen", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.BGN = {"title":"Lew", "value":"1.95580000", "code":"BGN", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CYP = {"title":"Zypern-Pfund", "value":"0.58130000", "code":"CYP", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CZK = {"title":"Tschechische Krone", "value":"25.60500000", "code":"CZK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.EEK = {"title":"Estnische Krone", "value":"15.64660000", "code":"EEK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HUF = {"title":"Ungarische Forint", "value":"266.96000000", "code":"HUF", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LTL = {"title":"Litas", "value":"3.45280000", "code":"LTL", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LVL = {"title":"Lats", "value":"0.70810000", "code":"LVL", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.MTL = {"title":"Maltesische Lira", "value":"0.42930000", "code":"MTL", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.PLN = {"title":"Z?oty", "value":"4.13580000", "code":"PLN", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RON = {"title":"Rumänischer Leu", "value":"4.27850000", "code":"RON", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.SEK = {"title":"Schwedische Krone", "value":"10.28550000", "code":"SEK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.SKK = {"title":"Slowakische Krone", "value":"30.12600000", "code":"SKK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CHF = {"title":"Schweizer Franken", "value":"1.51310000", "code":"CHF", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.ISK = {"title":"Isländische Krona", "value":"290.00000000", "code":"ISK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.NOK = {"title":"Norwegische Krone", "value":"8.39200000", "code":"NOK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HRK = {"title":"Kuna", "value":"7.31830000", "code":"HRK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RUB = {"title":"Rubel", "value":"42.94680000", "code":"RUB", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.TRY = {"title":"Türkische Lira", "value":"2.21650000", "code":"TRY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.AUD = {"title":"Australischer Dollar", "value":"1.61930000", "code":"AUD", "symbol_left":"AU $", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CAD = {"title":"Kanadische Dollar", "value":"1.57760000", "code":"CAD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CNY = {"title":"Chinesische Yuan", "value":"10.14910000", "code":"CNY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HKD = {"title":"Hong Kong Dollar", "value":"11.51900000", "code":"HKD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.IDR = {"title":"Indonesische Rupiah", "value":"14208.07000000", "code":"IDR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.KRW = {"title":"Südkoreanische Won", "value":"1727.00000000", "code":"KRW", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.MYR = {"title":"Ringgit", "value":"5.04000000", "code":"MYR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.NZD = {"title":"", "value":"2.03640000", "code":"NZD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.PHP = {"title":"", "value":"69.97300000", "code":"PHP", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.SGD = {"title":"", "value":"2.06640000", "code":"SGD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.THB = {"title":"", "value":"49.35000000", "code":"THB", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.ZAR = {"title":"", "value":"11.21800000", "code":"ZAR", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; var ccBtn = false; var ccFrm = false; window.addEvent('load', function() { document.ccalc.cc_value_from.value = number_format(1,2,',',''); ccBtn = new Fx.Style($$('#ccconv div')[0],'opacity',{duration:500,wait:false}); ccFrm = new Fx.Style($$('#ccconv div')[1],'opacity',{hide:1,duration:500,wait:false}); ccFrm.hide(); }); var CurrCalc = new Class({ ccalc: function(){ f = document.ccalc; var src_obj = cc_currencies.EUR; var src_value = parseFloat(htmlnumber2float(f.cc_value_from.value)); src_value = !(src_value>0) ? 1 : src_value; var dest_value = ''; var dest_curr = f.cc_dest_cur[f.cc_dest_cur.selectedIndex].value; var dest_obj = eval("cc_currencies."+dest_curr); dest_value = (src_value / src_obj.value) * dest_obj.value; dest_value = dest_obj.symbol_left + " " + number_format(dest_value, dest_obj.decimal_places, dest_obj.decimal_point, dest_obj.thousands_point) + " " + dest_obj.symbol_right; $('cc_dest_value').innerHTML = " = " + dest_value; } }); var CC = new CurrCalc;