currency={'usd': '2.25','gbp': '1.42','eur': '1.71','jpy': '172','brl': '3.85','rub': '66.16','pln': '7.09'};

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