function computeForm(form) {
var total=0

for (var count=0; count<2; count++)
{
if (form.q1[count].checked){
var total=total+parseInt(form.q1[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q2[count].checked){
var total=total+parseInt(form.q2[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q3[count].checked){
var total=total+parseInt(form.q3[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q4[count].checked){
var total=total+parseInt(form.q4[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q5[count].checked){
var total=total+parseInt(form.q5[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q6[count].checked){
var total=total+parseInt(form.q6[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q7[count].checked){
var total=total+parseInt(form.q7[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q8[count].checked){
var total=total+parseInt(form.q8[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q9[count].checked){
var total=total+parseInt(form.q9[count].value);
}
}

for (var count=0; count<2; count++)
{
if (form.q10[count].checked){
var total=total+parseInt(form.q10[count].value);
}
}

if (total<1){ var message="Good news: it is unlikely that you have Fibromyalgia." }
else if (total<3){ var message="It is unlikely that you have Fibromyalgia at this stage, but do keep an eye on any of the other symptoms you may develop later. Why not nip the condition in the bud, rather than allow it to become full-blown Fibromyalgia." }
else if (total<5){ var message="You may be in the early stages of developing Fibromyalgia, so why not try to improve your condition now, with my Combination Approach, rather than let your health deteriorate further." }
else if (total<8){ var message="You sound to be having health problems which are suggestive of Fibromyalgia. I recommend the Combination Approach at this stage, rather than waiting until you have even more symptoms." }
else { var message="Your score is highly suggestive of Fibromyalgia. You may feel that you are beyond help now, but let me reassure you that my Combination Approach has worked for many people with long-term symptoms like these, and many more." }

window.alert('You have ' + total + ' out of the 10 listed symptoms. \n \n' + message)

}