/* 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 clearForm() {
  document.healthProfile.head1.value="";
  document.healthProfile.head2.value="";
  document.healthProfile.head3.value="";
  document.healthProfile.head4.value="";
  document.healthProfile.headTtl.value="";
  document.healthProfile.eyes1.value="";
  document.healthProfile.eyes2.value="";
  document.healthProfile.eyes3.value="";
  document.healthProfile.eyes4.value="";
  document.healthProfile.eyesTtl.value="";
}
function headcalc(){
  h1 = document.healthProfile.head1.value;
  h2 = document.healthProfile.head2.value;
  h3 = document.healthProfile.head3.value;
  h4 = document.healthProfile.head4.value;
  document.healthProfile.headTtl.value = (h1*1)+(h2*1)+(h3*1)+(h4*1);
}
function eyescalc(){
  ey1 = document.healthProfile.eyes1.value;
  ey2 = document.healthProfile.eyes2.value;
  ey3 = document.healthProfile.eyes3.value;
  ey4 = document.healthProfile.eyes4.value;
  document.healthProfile.eyesTtl.value = (ey1*1)+(ey2*1)+(ey3*1)+(ey4*1);
}
function earscalc(){
  e1 = document.healthProfile.ears1.value;
  e2 = document.healthProfile.ears2.value;
  e3 = document.healthProfile.ears3.value;
  e4 = document.healthProfile.ears4.value;
  document.healthProfile.earsTtl.value = (e1*1)+(e2*1)+(e3*1)+(e4*1);
}
function nosecalc(){
  n1 = document.healthProfile.nose1.value;
  n2 = document.healthProfile.nose2.value;
  n3 = document.healthProfile.nose3.value;
  n4 = document.healthProfile.nose4.value;
  n5 = document.healthProfile.nose5.value;
  document.healthProfile.noseTtl.value = (n1*1)+(n2*1)+(n3*1)+(n4*1)+(n5*1);
}
function mouthcalc(){
  m1 = document.healthProfile.mouth1.value;
  m2 = document.healthProfile.mouth2.value;
  m3 = document.healthProfile.mouth3.value;
  m4 = document.healthProfile.mouth4.value;
  m5 = document.healthProfile.mouth5.value;
  document.healthProfile.mouthTtl.value = (m1*1)+(m2*1)+(m3*1)+(m4*1)+(m5*1);
}
function skincalc(){
  s1 = document.healthProfile.skin1.value;
  s2 = document.healthProfile.skin2.value;
  s3 = document.healthProfile.skin3.value;
  s4 = document.healthProfile.skin4.value;
  s5 = document.healthProfile.skin5.value;
  document.healthProfile.skinTtl.value = (s1*1)+(s2*1)+(s3*1)+(s4*1)+(s5*1);
}
function heartcalc(){
  hr1 = document.healthProfile.heart1.value;
  hr2 = document.healthProfile.heart2.value;
  hr3 = document.healthProfile.heart3.value;
  document.healthProfile.heartTtl.value = (hr1*1)+(hr2*1)+(hr3*1);
}
function lungscalc(){
  l1 = document.healthProfile.lungs1.value;
  l2 = document.healthProfile.lungs2.value;
  l3 = document.healthProfile.lungs3.value;
  l4 = document.healthProfile.lungs4.value;
  document.healthProfile.lungsTtl.value = (l1*1)+(l2*1)+(l3*1)+(l4*1);
}
function digestcalc(){
  d1 = document.healthProfile.digest1.value;
  d2 = document.healthProfile.digest2.value;
  d3 = document.healthProfile.digest3.value;
  d4 = document.healthProfile.digest4.value;
  d5 = document.healthProfile.digest5.value;
  d6 = document.healthProfile.digest6.value;
  d7 = document.healthProfile.digest7.value;
  document.healthProfile.digestTtl.value = (d1*1)+(d2*1)+(d3*1)+(d4*1)+(d5*1)+(d6*1)+(d7*1);
}
function jointcalc(){
  j1 = document.healthProfile.joint1.value;
  j2 = document.healthProfile.joint2.value;
  j3 = document.healthProfile.joint3.value;
  j4 = document.healthProfile.joint4.value;
  j5 = document.healthProfile.joint5.value;
  document.healthProfile.jointTtl.value = (j1*1)+(j2*1)+(j3*1)+(j4*1)+(j5*1);
}
function weightcalc(){
  w1 = document.healthProfile.weight1.value;
  w2 = document.healthProfile.weight2.value;
  w3 = document.healthProfile.weight3.value;
  w4 = document.healthProfile.weight4.value;
  w5 = document.healthProfile.weight5.value;
  w6 = document.healthProfile.weight6.value;
  document.healthProfile.weightTtl.value = (w1*1)+(w2*1)+(w3*1)+(w4*1)+(w5*1)+(w6*1);
}
function energycalc(){
  en1 = document.healthProfile.energy1.value;
  en2 = document.healthProfile.energy2.value;
  en3 = document.healthProfile.energy3.value;
  en4 = document.healthProfile.energy4.value;
  document.healthProfile.energyTtl.value = (en1*1)+(en2*1)+(en3*1)+(en4*1);
}
function mindcalc(){
  m1 = document.healthProfile.mind1.value;
  m2 = document.healthProfile.mind2.value;
  m3 = document.healthProfile.mind3.value;
  m4 = document.healthProfile.mind4.value;
  m5 = document.healthProfile.mind5.value;
  m6 = document.healthProfile.mind6.value;
  m7 = document.healthProfile.mind7.value;
  m8 = document.healthProfile.mind8.value;
  document.healthProfile.mindTtl.value = (m1*1)+(m2*1)+(m3*1)+(m4*1)+(m5*1)+(m6*1)+(m7*1)+(m8*1);
}
function emotioncalc(){
  em1 = document.healthProfile.emotion1.value;
  em2 = document.healthProfile.emotion2.value;
  em3 = document.healthProfile.emotion3.value;
  em4 = document.healthProfile.emotion4.value;
  document.healthProfile.emotionTtl.value = (em1*1)+(em2*1)+(em3*1)+(em4*1);
}
function othercalc(){
  o1 = document.healthProfile.other1.value;
  o2 = document.healthProfile.other2.value;
  o3 = document.healthProfile.other3.value;
  document.healthProfile.otherTtl.value = (o1*1)+(o2*1)+(o3*1);
}
function grandcalc(){
  g1 = document.healthProfile.headTtl.value;
  g2 = document.healthProfile.eyesTtl.value;
  g3 = document.healthProfile.earsTtl.value;
  g4 = document.healthProfile.noseTtl.value;
  g5 = document.healthProfile.mouthTtl.value;
  g6 = document.healthProfile.skinTtl.value;
  g7 = document.healthProfile.heartTtl.value;
  g8 = document.healthProfile.lungsTtl.value;
  g9 = document.healthProfile.digestTtl.value;
  g10 = document.healthProfile.jointTtl.value;
  g11 = document.healthProfile.weightTtl.value;
  g12 = document.healthProfile.energyTtl.value;
  g13 = document.healthProfile.mindTtl.value;
  g14 = document.healthProfile.emotionTtl.value;
  g15 = document.healthProfile.otherTtl.value;
  document.healthProfile.grandTtl.value = (g1*1)+(g2*1)+(g3*1)+(g4*1)+(g5*1)+(g6*1)+(g7*1)+(g8*1)+(g9*1)+(g10*1)+(g11*1)+(g12*1)+(g13*1)+(g14*1)+(g15*1);
}

//function stopCalc(){
//clearInterval(interval);
// }