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", "FRF", "6.55957", "PHP", "58.313", "KRW", "1485.13", "FIM", "5.94573", "BRL", "3.1309", "IDR", "14014.2", "SIT", "239.64" ); function round269048400_1714520283(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 updateCurrencies69048400_1714520283(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.currencycalculator69048400_1714520283.elements.length; i ++) { l_value = value * currencies[2*i + 1]; l_value = round269048400_1714520283(l_value); document.currencycalculator69048400_1714520283.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("");