<!--

function control(rb, numofchoices, total){

for (var i = 0; i < numofchoices; i++) 
 if (rb[i].checked) //add score
      return (total+parseInt(rb[i].value));
 return (total);

}


function whatisscore() {

total= 0;

total= control(document.EAT.Q1, 2, total);
total= control(document.EAT.Q2, 2, total);
total= control(document.EAT.Q3, 2, total);
total= control(document.EAT.Q4, 2, total);
total= control(document.EAT.Q5, 2, total);
total= control(document.EAT.Q6, 2, total);
total= control(document.EAT.Q7, 2, total);
total= control(document.EAT.Q8, 2, total);

if(total<4){
alert("You answered " + total + " of the questions correctly.  The only way you can redeem yourself is by showing off your chopstick savvy.");
}

if(total>3&& total<6){
alert("You answered " + total + " of the questions correctly.  You’ve probably committed a few faux pas at the table.  Lucky for you, most things aren’t rude by Chinese standards.");
}

if(total>5){
alert("You answered " + total + " of the questions correctly.  Congratulations!  You know your way around a Chinese meal.");
}
}
//-->

