function calculator()
{
  var initial = document.forms.form1.initial.value;
  initial = initial.toString().replace(/\$|\,/g,'');
  if(isNaN(initial))
    initial = "0";
  var fee = 1.5*(Math.ceil(initial/50));
  var total = parseFloat(fee) + parseFloat(initial);
  document.forms.form1.fee.value = '$' + fee.toFixed(2);
  document.forms.form1.amount.value = '$' + total.toFixed(2);
}
