currency={'cyp': '1','usd': '2.27','jpy': '225.84','gbp': '1.52','eur': '1.70860'};

function currency_convert () {
  cForm  = document.getElementById('currency_form');
  var result = ((cForm.amount.value / currency[cForm.from.value]) * currency[cForm.to.value]);
  cForm.result.value = (Math.round(result*100)/100) + ' ' + cForm.to.value.toUpperCase();
  return false;
}