function isNumberDp(string) { if (!string) return false; var Chars = "0123456789.,"; for (var i = 0; i < string.length; i++) { if (Chars.indexOf(string.charAt(i)) == -1) return false; } return true; } function toTruncateDp(string) { var lstring = string; var dotpos = lstring.indexOf('.'); if (dotpos == -1) return lstring; var moneystr = lstring.substring(0,dotpos); return moneystr; } function forexcalc(form) { var amount = form.amount.value; // if not numeric, set to zero if (!isNumberDp(amount)) form.amount.value = "0"; // if numeric, mask out comma character form.amount.value = form.amount.value.replace(/,/g, ""); // remove cents form.amount.value = toTruncateDp(form.amount.value); var address = "http://www.uobgroup.com/pages/resources/calculators/forexResults.jsp?"; var op_tool = 0; var op_loc_box = 0; var op_dir = 0; var op_stat = 1; var op_menu = 1; var op_scroll = 1; var op_resize = 0; var op_wid = "500"; var op_heigh = "400"; var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories=" + op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars=" + op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height=" + op_heigh; var addr = address + "amount=" + form.amount.value + "&from=" + form.from.options[form.from.selectedIndex].value + "&to=" + form.to.options[form.to.selectedIndex].value; var win3 = window.open("", "what_I_want", option); var win4 = window.open(addr, "what_I_want"); } function openforexwin() { window.open('http://www.uobgroup.com/redirect.jsp?direct=/mproxy?Action=MER','frxcalc','toolbar=no,directories=no, resizable=yes, menubar=yes,location=no,scrollbars=yes,width=500,height=400,maximize=no,minimize=no'); } document.write('
Forex Rates'); document.write('
'); document.write('
'); document.write('As at: 08 Oct 2008 15:36 '); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('');document.write(''); document.write(''); document.write(''); document.write(''); document.write('
Currency
Code
Selling
TT/OD
Buying
TT
AUD1.01840.9944
CAD1.34291.3169
CHF131.0732128.0732
EUR2.01671.9847
GBP2.60602.5680
HKD19.169918.7699
JPY1.49011.4601
USD1.48001.4630
'); document.write('
'); document.write('More'); document.write('
'); /* document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(''); document.write('
'); document.write(' '); document.write(' '); document.write(''); document.write('
'); document.write(''); document.write('
'); */ document.write('
'); document.write('
');