// JavaScript Document

/* 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(){
  one = document.autoSumForm.oneBox.value * 1;
  two = document.autoSumForm.twoBox.value * 1; 
  three = document.autoSumForm.threeBox.value * 1; 
  four = document.autoSumForm.fourBox.value * 1; 
  five = document.autoSumForm.fiveBox.value * 1; 
  document.autoSumForm.totBox.value = parseInt(one) + parseInt(two) + parseInt(three) + parseInt(four) + parseInt(five);
  document.autoSumForm.totBox.value = '$' + parseInt(document.autoSumForm.totBox.value);
}
function stopCalc(){
  clearInterval(interval);
}
