<!--
	
function checkForm(which) 
{
	var v = document.survey.todaydate.value 
	if ((v  == "") | (v == null)) {
		alert("Date fields must not be blank")
		return false
		}
        var c =  document.survey.comments.value 
	alert("Submitting Request")
        var s = (list.options[list.selectedIndex]).text
	return false
}
function score(obj){
	var points = 0
        if (document.survey.SEX[0].checked)
        {
        var sx = "M" 
        high = 260
        med = 240
        } else {
        var sx = "F" 
        high = 169
        med = 146
	}
        var la = document.survey.AGE.value
	if (la < 25) points = 0
	else if (la < 42) points = 1
	else if (la < 55) points = 2
	else if (la < 70) points = 3
        else points = 4
        var w = document.survey.WEIGHT.value
        if (w > high)  { points *= 2 }
        else if (w > med)   { points += 1 }
	
	for (var c = 0; c < document.survey.CVD.length; c++) {
            if (document.quiz.CVD[c].checked) {
	    break
	    }
	}
	points += c * 3
	for (var p = 0; p < document.survey.ANGINA.length; p++) {
            if (document.survey.ANGINA[p].checked) {
	    break
	    }
	}
	points += p * 3

        var i  = document.survey.INTAKE.selectedIndex 
	points += 2 * (4 - i)


        var l  = document.survey.LPA.selectedIndex 
        if (l == 0) {
           if ((p + c) > 0) {
           l += 1
         }
	}
	points +=  (2 * l)

        var o  = document.survey.CHOL.selectedIndex 
        if (o == 0) {
           o = p + c
         }
	points += o
	var Jars = 1
	switch (t) {
	case 2 : 
	if (points > 19) Jars = 2
	break
	case 3 : 
	if (points > 19) Jars = 2
	if (points > 27) Jars = 3
	case 4 : 
	case 5 :
	if (points > 19) Jars = 2
	if (points > 27) Jars = 3
	if (points > 39) Jars = 4
	}
         document.survey.points.value = points 
	return true
}

//-->
