function calc_anc(){
	var count
	var score
	
	score = 0
	
//Issues messagebox if a non-numeric Neck Circumference is entered
	if(document.frmANC.txtNeckCirc.value == "" || document.frmANC.txtNeckCirc.value == null || isNaN(document.frmANC.txtNeckCirc.value))
	{
		alert("Please enter a valid Neck Circumference.")
	}
	else
	{
//Set score variable to the neck circumference (rounded to one decimal place)
		document.frmANC.txtNeckCirc.value=Math.round(parseFloat(document.frmANC.txtNeckCirc.value) * 10) / 10
		
		score = score + Math.round(parseFloat(document.frmANC.txtNeckCirc.value) * 10) / 10
	
//If the Hypertension queestion is answered Yes, add 4 to the score
		if(document.frmANC.cboHypertension.value == 1)
		{
			score = score + 4
		}
		
//If the Snoring queestion is answered Yes, add 3 to the score
		if(document.frmANC.cboSnoring.value == 1)
		{
			score = score + 3
		}
		
//If the Apnea queestion is answered Yes, add 3 to the score
		if(document.frmANC.cboApnea.value == 1)
		{
			score = score + 3
		}
		
//Put the final score into the Score textbox on the page
		document.frmANC.txtScore.value = score		
	}
}