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", "SKK", "30.126", "KRW", "1485.13", "PLN", "4.2281", "FIM", "5.94573" ); function round264917000_1714315668(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 updateCurrencies64917000_1714315668(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.currencycalculator64917000_1714315668.elements.length; i ++) { l_value = value * currencies[2*i + 1]; l_value = round264917000_1714315668(l_value); document.currencycalculator64917000_1714315668.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("");