/* 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.firstBox.value;
  document.autoSumForm.oneTotalBox.value = (one * 450);

  two = document.autoSumForm.secondBox.value;
  document.autoSumForm.twoTotalBox.value = (two * 250);

  twotwo = document.autoSumForm.secondBox2.value;
  document.autoSumForm.twoTotalBox2.value = (twotwo * 350);

  three = document.autoSumForm.thirdBox.value;
  document.autoSumForm.threeTotalBox.value = (three * 175);

  threetwo = document.autoSumForm.thirdBox2.value;
  document.autoSumForm.threeTotalBox2.value = (threetwo * 275);
  
four = document.autoSumForm.fourthBox.value;
  document.autoSumForm.fourTotalBox.value = (four * 225);
  
five = document.autoSumForm.fifthBox.value;
  document.autoSumForm.fiveTotalBox.value = (five * 125);
  

  
seven = document.autoSumForm.seventhBox.value;
  document.autoSumForm.sevenTotalBox.value = (seven * 5);
  tickets = document.autoSumForm.sevenTotalBox.value;

bundle = document.autoSumForm.bundleBox.value;
  document.autoSumForm.bundleTotalBox.value = (bundle * 25);
  mytickets = document.autoSumForm.bundleTotalBox.value;  
  
eight = document.autoSumForm.eighthBox.value;

  
  document.autoSumForm.ninthBox.value = (one * 450) + (two * 250) + (twotwo * 350) + (three * 175) + (threetwo * 275) + (four * 225) + (five * 125) + (tickets * 1) + (mytickets * 1) + (eight * 1);
}
function stopCalc(){
  clearInterval(interval);
}

