function Analyse(form) {
  var total = 0;
  total += form.Sitting.options.selectedIndex;
  total += form.TV.options.selectedIndex;
  total += form.Public.options.selectedIndex;
  total += form.Passenger.options.selectedIndex;
  total += form.Lying.options.selectedIndex;
  total += form.Talking.options.selectedIndex;
  total += form.Lunch.options.selectedIndex;
  total += form.Traffic.options.selectedIndex;
  form.score.value = total;

  if (total <=7) form.answer.value = "You have a normal amount of sleepiness.";
  if (total >=8 && total <=9) form.answer.value = "You have an average amount of sleepiness.";
  if (total >=10 && total <=15) form.answer.value = "You may be excessively sleepy depending on the situation.\nYou may want to seek medical attention.";
  if (total >=16) form.answer.value = "You are excessively sleepy and should seek medical attention!";
}

