currency={'usd': '2.2','gbp': '1.43','eur': '1.71','jpy': '185.4','brl': '3.8','rub': '67.35','pln': '6.71'};

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