/*-------------First Row----------------*/
function startCalc()
{
 interval = setInterval("calc()",1);
}
function calc(){
  one = document.autoSumForm.cashInBank.value;
  two = document.autoSumForm.realEstate.value;
  c = document.autoSumForm.car.value;
  d = document.autoSumForm.otherAssets.value;
  document.autoSumForm.total.value = (one * 1) + (two * 1) + (c * 1) + (d * 1);
}
function stopCalc(){
  clearInterval(interval);
}


/*-------------Seceond Row-------------*/
function startCalc1(){
  interval1 = setInterval("calc1()",1);
}
function calc1(){
  one = document.autoSumForm.bankLoan.value;
  two = document.autoSumForm.mortgage.value;
  c = document.autoSumForm.ccard.value;
  d = document.autoSumForm.otherLoan.value;
  document.autoSumForm.totalLiabilities.value = (one * 1) + (two * 1) + (c * 1) + (d * 1);
}
function stopCalc1(){
  clearInterval(interval1);
}

/*------------Third Row---------------*/
function startCalc2(){
  interval2 = setInterval("calc2()",1);
}
function calc2(){
  one = document.autoSumForm.mpay1.value;
  two = document.autoSumForm.mpay2.value;
  c = document.autoSumForm.mpay3.value;
  d = document.autoSumForm.mpay4.value;
  document.autoSumForm.totalPay.value = (one * 1) + (two * 1) + (c * 1) + (d * 1);
}
function stopCalc2(){
  clearInterval(interval2);
}

