/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jim Stiles | www.jdstiles.com */
function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  rent = document.form1.rent.value;
  bond = document.form1.bond.value;
  fee = document.form1.fee.value;
  other = document.form1.other.value;
  if (document.form1.amount.value=="3")
  {
  var credit = (rent * 1.03) + (bond * 1.03) + (fee * 1.03) + (other * 1.03);
  document.form1.total.value = credit.toFixed(2);
  }
  else
  {
  var debit = (rent * 1) + (bond * 1) + (fee * 1) + (other * 1);
  document.form1.total.value = debit.toFixed(2);
  }
}
function stopCalc(){
  clearInterval(interval);
}
