var cc_currencies = new Object; cc_currencies.EUR = {"title":"Euro", "value":"0.67285695", "code":"EUR", "symbol_left":"", "symbol_right":"€", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.GBP = {"title":"Pounds", "value":"0.60287983", "code":"GBP", "symbol_left":"£", "symbol_right":"", "decimal_point":".", "thousands_point":",", "decimal_places":"2" }; cc_currencies.DKK = {"title":"Dänische Krone", "value":"5.00753600", "code":"DKK", "symbol_left":"", "symbol_right":"Kr", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.USD = {"title":"Dollar", "value":"1.00000000", "code":"USD", "symbol_left":"$", "symbol_right":"", "decimal_point":".", "thousands_point":",", "decimal_places":"2" }; cc_currencies.JPY = {"title":"Japanischer Yen", "value":"90.67420266", "code":"JPY", "symbol_left":"Yen", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.BGN = {"title":"Lew", "value":"1.31597362", "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":"17.27627506", "code":"CZK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.EEK = {"title":"Estnische Krone", "value":"10.52792356", "code":"EEK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HUF = {"title":"Ungarische Forint", "value":"184.91454717", "code":"HUF", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LTL = {"title":"Litas", "value":"2.32324048", "code":"LTL", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LVL = {"title":"Lats", "value":"0.47719015", "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":"2.85762347", "code":"PLN", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RON = {"title":"Rumänischer Leu", "value":"2.89530346", "code":"RON", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.SEK = {"title":"Schwedische Krone", "value":"6.98896515", "code":"SEK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.SKK = {"title":"Slowakische Krone", "value":"21.64690666", "code":"SKK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CHF = {"title":"Schweizer Franken", "value":"1.01702328", "code":"CHF", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.ISK = {"title":"Isländische Krona", "value":"225.61070484", "code":"ISK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.NOK = {"title":"Norwegische Krone", "value":"5.67487552", "code":"NOK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HRK = {"title":"Kuna", "value":"4.88998789", "code":"HRK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RUB = {"title":"Rubel", "value":"28.99111829", "code":"RUB", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.TRY = {"title":"Türkische Lira", "value":"1.48425515", "code":"TRY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.AUD = {"title":"Australischer Dollar", "value":"1.09238326", "code":"AUD", "symbol_left":"AU $", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CAD = {"title":"Kanadische Dollar", "value":"1.07139012", "code":"CAD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CNY = {"title":"Chinesische Yuan", "value":"6.82727762", "code":"CNY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HKD = {"title":"Hong Kong Dollar", "value":"7.74996636", "code":"HKD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.IDR = {"title":"Indonesische Rupiah", "value":"9460.09285426", "code":"IDR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.KRW = {"title":"Südkoreanische Won", "value":"1166.67339524", "code":"KRW", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.MYR = {"title":"Ringgit", "value":"3.40149374", "code":"MYR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.NZD = {"title":"", "value":"1.38285560", "code":"NZD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.PHP = {"title":"", "value":"47.20024223", "code":"PHP", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.SGD = {"title":"", "value":"1.39267932", "code":"SGD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.THB = {"title":"", "value":"33.37505046", "code":"THB", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.ZAR = {"title":"", "value":"7.55874041", "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.USD; 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;