function USD_GBP(val){ var amount=0.68356; var r=val*amount; document.write(Math.round(r,2)); } function EUR_GBP(val){ var amount=0.951; var r=val*amount; document.write(Math.round(r,2)); }