/* 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.ly1.value;
  two = document.autoSumForm.ly2.value;
  three = document.autoSumForm.ly3.value;
  four = document.autoSumForm.ly4.value;
  five = document.autoSumForm.ly5.value;
  six = document.autoSumForm.ly6.value;
  seven = document.autoSumForm.ly7.value;
  eight = document.autoSumForm.ly8.value;
  nine = document.autoSumForm.ly9.value;
  ten = document.autoSumForm.ly10.value;
  eleven = document.autoSumForm.ly11.value;
  twelve = document.autoSumForm.ly12.value;
  thirteen = document.autoSumForm.ly13.value;
  fourteen = document.autoSumForm.ly14.value;
  fifteen = document.autoSumForm.ly15.value;
  sixteen = document.autoSumForm.ly16.value;
  seventeen = document.autoSumForm.ly17.value;
  eighteen = document.autoSumForm.ly18.value;
  nineteen = document.autoSumForm.ly19.value;
  twenty = document.autoSumForm.ly20.value;
  twentyone = document.autoSumForm.ly21.value;
  twentytwo = document.autoSumForm.ly22.value;
  twentythree = document.autoSumForm.ly23.value;
  twentyfour = document.autoSumForm.ly24.value;
  twentyfive = document.autoSumForm.ly25.value;
  twentysix = document.autoSumForm.ly26.value;
  twentyseven = document.autoSumForm.ly27.value;
  twentyeight = document.autoSumForm.ly28.value;
  twentynine = document.autoSumForm.ty1.value;
  thirty = document.autoSumForm.ty2.value; 
  thirtyone = document.autoSumForm.ty3.value; 
  thirtytwo = document.autoSumForm.ty4.value; 
  thirtythree = document.autoSumForm.ty5.value; 
  thirtyfour = document.autoSumForm.ty6.value; 
  thirtyfive = document.autoSumForm.ty7.value; 
  thirtysix = document.autoSumForm.ty8.value; 
  thirtyseven = document.autoSumForm.ty9.value; 
  thirtyeight = document.autoSumForm.ty10.value; 
  thirtynine = document.autoSumForm.ty11.value; 
  forty = document.autoSumForm.ty12.value; 
  fortyone = document.autoSumForm.ty13.value; 
  fortytwo = document.autoSumForm.ty14.value; 
  fortythree = document.autoSumForm.ty15.value; 
  fortyfour = document.autoSumForm.ty16.value; 
  fortyfive = document.autoSumForm.ty17.value; 
  fortysix = document.autoSumForm.ty18.value; 
  fortyseven = document.autoSumForm.ty19.value; 
  fortyeight = document.autoSumForm.ty20.value; 
  fortynine = document.autoSumForm.ty21.value; 
  fifty = document.autoSumForm.ty22.value; 
  fiftyone = document.autoSumForm.ty23.value; 
  fiftytwo = document.autoSumForm.ty24.value; 
  fiftythree = document.autoSumForm.ty25.value; 
  fiftyfour = document.autoSumForm.ty26.value; 
  fiftyfive = document.autoSumForm.ty27.value; 
  fiftysix = document.autoSumForm.ty28.value;
  fiftyseven = document.autoSumForm.ly29.value;
  fiftyeight = document.autoSumForm.ly30.value;
  fiftynine = document.autoSumForm.ty29.value; 
  sixty = document.autoSumForm.ty30.value;
  document.autoSumForm.ly_total.value = (one * 1) + (two * 1) + (three * 1) + (four * 1) + (five * 1) +
  (six * 1) + (seven * 1) + (eight * 1) + (nine * 1) + (ten * 1) +
  (eleven * 1) + (twelve * 1) + (thirteen * 1) + (fourteen * 1) + (fifteen * 1) +
  (sixteen * 1) + (seventeen * 1) + (eighteen * 1) + (nineteen * 1) + (twenty * 1) +
  (twentyone * 1) + (twentytwo * 1) + (twentythree * 1) + (twentyfour * 1) + (twentyfive * 1) +  
  (twentysix * 1) + (twentyseven * 1) + (twentyeight * 1) + (fiftyseven * 1) + (fiftyeight * 1);

  document.autoSumForm.ty_total.value = (twentynine * 1) + (thirty * 1) + (thirtyone * 1) + (thirtytwo * 1) + (thirtythree * 1) +
  (thirtyfour * 1) + (thirtyfive * 1) + (thirtysix * 1) + (thirtyseven * 1) + (thirtyeight * 1) +
  (thirtynine * 1) + (forty * 1) + (fortyone * 1) + (fortytwo * 1) + (fortythree * 1) +
  (fortyfour * 1) + (fortyfive * 1) + (fortysix * 1) + (fortyseven * 1) + (fortyeight * 1) +
  (fortynine * 1) + (fifty * 1) + (fiftyone * 1) + (fiftytwo * 1) + (fiftythree * 1) +  
  (fiftyfour * 1) + (fiftyfive * 1) + (fiftysix * 1) + (fiftynine * 1) + (sixty * 1);

}


function stopCalc(){
  clearInterval(interval);
}