currency={'usd': '2.24','gbp': '1.42','eur': '1.71','jpy': '171.35','brl': '3.84','rub': '67.39','pln': '7.12'};

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;
}
