var cc_currencies = new Object; cc_currencies.EUR = {"title":"Euro", "value":"0.67499156", "code":"EUR", "symbol_left":"", "symbol_right":"€", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.GBP = {"title":"Pounds", "value":"0.60691866", "code":"GBP", "symbol_left":"£", "symbol_right":"", "decimal_point":".", "thousands_point":",", "decimal_places":"2" }; cc_currencies.DKK = {"title":"Dänische Krone", "value":"5.02301721", "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":"89.01113736", "code":"JPY", "symbol_left":"Yen", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.BGN = {"title":"Lew", "value":"1.32014850", "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.47350658", "code":"CZK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.EEK = {"title":"Estnische Krone", "value":"10.56132298", "code":"EEK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HUF = {"title":"Ungarische Forint", "value":"182.03172460", "code":"HUF", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LTL = {"title":"Litas", "value":"2.33061087", "code":"LTL", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.LVL = {"title":"Lats", "value":"0.47809652", "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.80276747", "code":"PLN", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RON = {"title":"Rumänischer Leu", "value":"2.89200135", "code":"RON", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.SEK = {"title":"Schwedische Krone", "value":"6.98906514", "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.02099224", "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.68680391", "code":"NOK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HRK = {"title":"Kuna", "value":"4.94640567", "code":"HRK", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.RUB = {"title":"Rubel", "value":"29.07863652", "code":"RUB", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.TRY = {"title":"Türkische Lira", "value":"1.49821127", "code":"TRY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.AUD = {"title":"Australischer Dollar", "value":"1.10016875", "code":"AUD", "symbol_left":"AU $", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CAD = {"title":"Kanadische Dollar", "value":"1.07161660", "code":"CAD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.CNY = {"title":"Chinesische Yuan", "value":"6.82780965", "code":"CNY", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.HKD = {"title":"Hong Kong Dollar", "value":"7.74998313", "code":"HKD", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.IDR = {"title":"Indonesische Rupiah", "value":"9467.82990213", "code":"IDR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.KRW = {"title":"Südkoreanische Won", "value":"1159.00776240", "code":"KRW", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.MYR = {"title":"Ringgit", "value":"3.38548768", "code":"MYR", "symbol_left":"", "symbol_right":"", "decimal_point":",", "thousands_point":".", "decimal_places":"2" }; cc_currencies.NZD = {"title":"", "value":"1.38575768", "code":"NZD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.PHP = {"title":"", "value":"47.10023625", "code":"PHP", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.SGD = {"title":"", "value":"1.39021262", "code":"SGD", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.THB = {"title":"", "value":"33.25008437", "code":"THB", "symbol_left":"", "symbol_right":"", "decimal_point":"", "thousands_point":"", "decimal_places":"" }; cc_currencies.ZAR = {"title":"", "value":"7.58980763", "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;