/* This script available at
The JavaScript Source */
function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  one = document.autoSumForm.firstBox.value;
  two = document.autoSumForm.secondBox.value; 
  document.autoSumForm.thirdBox.value = (one * 1) - (two * 1);
  four = document.autoSumForm.fourthBox.value;
  document.autoSumForm.fifthBox.value = (document.autoSumForm.thirdBox.value) * (four * 1);
  document.autoSumForm.sixthBox.value = (document.autoSumForm.fifthBox.value) / (1000);
  seven = document.autoSumForm.seventhBox.value;
  eight = document.autoSumForm.eigthBox.value;
  nine = document.autoSumForm.ninthBox.value;
  document.autoSumForm.tenthBox.value = Math.round((document.autoSumForm.sixthBox.value) * (seven * 1) * (eight * 1) * (nine * 1));
  eleven = document.autoSumForm.eleventhBox.value;
  document.autoSumForm.twelvethBox.value = Math.round((document.autoSumForm.tenthBox.value) * (eleven * 1));
  thirteen = document.autoSumForm.thirteenthBox.value;
  document.autoSumForm.fourteenthBox.value = (thirteen * 1) / (document.autoSumForm.twelvethBox.value);

  document.autoSumForm.steptwoBox.value = (document.autoSumForm.sixthBox.value);
  document.autoSumForm.stepthreeBox.value = Math.round(document.autoSumForm.tenthBox.value);
  document.autoSumForm.stepfourBox.value = (document.autoSumForm.twelvethBox.value);

}
function stopCalc(){
  clearInterval(interval);
}
