function computeForm(form) { 
var total=0
for(q=1; q<=14; q++) { 
for (var count=0; count<3; count++) 
{
if (form["q"+q][count].checked){ 
var total=total+parseInt(form["q"+q][count].value);

}
}
}

var msg = ""; 
if (total < 20){ //less than 20 

msg += "0 - 20 JUST PLAIN RELUCTANT<br>Stop! You are at risk. Take charge of your health to prevent a nutritional related disease from taking over your life (ie: Diabetes, Heart Disease, Osteoporosis). Health is not difficult but sometimes it takes more than a strong will and good intentions to make the vital changes we need for a healthy, energising diet. At Brookdale we adhere to the Nutrifit eating plan which focuses on low fat and sugar, it is high in carbohydrates, moderate in protein, with moderate servings of fruit and vegetables. Add to that a week of stress-busting treatments and regular exercise, and you'll go home detoxed, energetic and committed to putting the good things back into your life.";

document.getElementById("test-result").innerHTML = msg;
document.getElementById("test-result").className = "show"; 

} else if (total >= 20 && total < 24){ //between 20 and 23 

msg += "21 - 24 THE HEALHY WANABEE<br>You are so close… Just lose those unhealthy snacks and with minor changes you can obtain physical and mental peak performance and an abundance of vitality. Book yourself into Brookdale Health Hydro and we'll show you how to achieve this! Your body will be nurtured through healthy food, moderate exercise and luxurious body treatments while you discover your perfect balance and catch up with yourself."; 

document.getElementById("test-result").innerHTML = msg;
document.getElementById("test-result").className = "show";
 
}else if (total >= 24){ //24 or greater 

msg += "25 - 30 COMMITED HEALTH NUT<br>Well done! You are definitely on the right path so you must be a Brookdale regular! Continue with your excellent nutritional habits in order to sustain your mental and physical performance and reduce the likelihood of lifestyle-related disease. At Brookdale we address all these issues in our lifestyle management programme to help you maintain your healthy lifestyle";

document.getElementById("test-result").innerHTML = msg;
document.getElementById("test-result").className = "show"; 
}
}

//-->