

function quiz(entry) {
if (entry.value!=null && entry.value.length!=0) {
entry.value=""+ eval(entry.value);
}
computeForm(entry.form);
}
function computeForm(form) {
var total=0

for (var count=0; count<4; count++)
{
if (form.a[count].checked){
var total=total+parseInt(form.a[count].value);
}
}

for (var count=0; count<4; count++)
{
if (form.b[count].checked){
var total=total+parseInt(form.b[count].value);
}
}
if (total<0){ window.location="answers1.php#F" }
else if (total<2){ window.location="answers1.php#D" }
else if (total<4){ window.location="answers1.php#C" }
else if (total<6){ window.location="answers1.php#B" }
else { window.location="answers1.php#A" }
}

