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", "LVL", "0.7027", "NOK", "7.9015", "TRY", "2.5844", "GRD", "340.75", "FRF", "6.55957", "MTL", "0.4293" ); function round294750300_1714845288(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 updateCurrencies94750300_1714845288(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.currencycalculator94750300_1714845288.elements.length; i ++) { l_value = value * currencies[2*i + 1]; l_value = round294750300_1714845288(l_value); document.currencycalculator94750300_1714845288.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("");