var currencies = new Array( "EUR", "1", "USD", "1.334", "GBP", "0.85325", "CHF", "1.2354", "DKK", "7.4575", "JPY", "130.03", "NLG", "2.20371", "BEF", "40.3399", "DEM", "1.95583", "CZK", "25.8", "KRW", "1485.13", "INR", "82.326", "PHP", "58.313", "CYP", "0.585274", "BGN", "1.9558", "CNY", "8.1574", "PLN", "4.2281" ); function round239690000_1715004294(value) { // round off a value by two decimals // Handle negative values if (value < 0) { value *= -1; sign = "-"; } else { sign = ""; } // Multiply by 100 value = Math.round(100*value); // Convert to string value = "" + value; // put a dot if (1 == value.length) { value = "0.0" + value; } else if (2 == value.length) { value = "0." + value; } else { value = value.substr(0, value.length - 2) + "." + value.substr(value.length - 2, 2); } return(sign + value); } // round2 function updateCurrencies39690000_1715004294(field, rate) { // Get the value value = field.value; // Check if it's realy a value if (isNaN(value)) { // Display an error message if it's not a value alert(value + " is geen getal."); } else { // It's a value, we can continue // Calculate the value in the standaard currency // by dividing the value by the exchange rate. value /= rate; // for each currency for (i = 0; i < document.currencycalculator39690000_1715004294.elements.length; i ++) { l_value = value * currencies[2*i + 1]; l_value = round239690000_1715004294(l_value); document.currencycalculator39690000_1715004294.elements[i].value= l_value; } } // "value" is a value } // updatecurrencies document.write("
"); document.write(""); for (i = 0; i < currencies.length; i += 2) { document.write(""); document.write(""); /// document.write(""); document.write(""); document.write(""); } document.write("
" + currencies[i] + " " + currencies[i+1] + ""); document.write(""); document.write("
"); document.write("
"); document.write("

money.technetium.be

"); document.write("");