

function displayBMIVerdict(verdictDIV, value)
{
	var verdict = "Your current BMI is " +  value;
	var contactTextPhillips = ' Please contact me now for your <a href="/what-to-do-now/contactme"> FREE consultation</a> ';
	var contactTextGP = " Please consult your GP before undertaking any physical exercise program ";
	
	if(value < 18.5)
	{
		verdict = verdict + " This means that you are currently underweight and this can result in increased health risks" + contactTextPhillips;
	}

	if(value > 18.5 && value < 24.9)
	{
		verdict = verdict + " This means that you are currently about right for your weight and height. Your health is at least risk" + contactTextPhillips;
	}
	
	if(value > 25 && value < 29.9)
	{
		verdict = verdict + " This means that you are currently overweight and the risks to your health are greater than they should be" + contactTextPhillips;
	}
	
	if(value > 30 && value < 34.9)
	{
		verdict = verdict + " This means that you are currently classed as obese class I and the risks to your health are classed as high" + contactTextPhillips;
	}	
	
	if(value > 35 && value < 39.9)
	{
		verdict = verdict + " This means that you are currently classed as obese class II and the risks to your health are classed as very high" + contactTextGP;
	}	
	
	if(value > 40)
	{
		verdict = verdict + " This means that you are currently classed as obese class III and the risks to your health are classed as extremely high" + contactTextGP;
	}	
	verdictDIV.innerHTML = verdict;
}

function calcEnglish(form, feet, inches, pounds) {
   if ((! inches) || isNaN(inches))
     inches = 0
   TotalInches = eval(feet*12) + eval(inches)
   form.calcval.value = Math.round(pounds * 703 * 10 / TotalInches / 
TotalInches) / 10
   displayBMIVerdict(bmiverdict, form.calcval.value);
}

function calcMetric(form, meters, kilograms) {
   form.calcval.value = Math.round(kilograms * 10 / meters / meters) / 10
   displayBMIVerdict(bmiverdict, form.calcval.value);
}