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", "INR", "82.326", "TRY", "2.5844", "RON", "4.446", "CNY", "8.1574", "LVL", "0.7027", "FRF", "6.55957", "SKK", "30.126", "AUD", "1.454", "SGD", "1.6954" ); function round237896500_1715474993(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 updateCurrencies37896500_1715474993(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.currencycalculator37896500_1715474993.elements.length; i ++) { l_value = value * currencies[2*i + 1]; l_value = round237896500_1715474993(l_value); document.currencycalculator37896500_1715474993.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("");