<!--

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.IQ.Q1, 5, total);
total= control(document.IQ.Q2, 5, total);
total= control(document.IQ.Q3, 5, total);
total= control(document.IQ.Q4, 5, total);
total= control(document.IQ.Q5, 5, total);
total= control(document.IQ.Q6, 3, total);
total= control(document.IQ.Q7, 4, total);
total= control(document.IQ.Q8, 4, total);

if(total <4) {
	alert("You answered " + total + " of the questions correctly.  You are whiter than mayonnaise on Wonder bread!")
}

if(total == 4) {
	alert("You answered 50 percent of the questions correctly.  However, if you were a true Asian, you’d know that 50 percent is not good enough.  You fail!!!")
}

if(total == 5) {
	alert("You answered 5 questions correctly.  Your Asian IQ is about average, but as you know, average is considered BELOW average in your elders’ eyes.  You fail!!!")
}


if(total == 6) {
	alert("You answered 6 questions correctly.  Your Asian IQ is slightly above average, making you a typical banana.")
}

if(total == 7) {
	alert("You answered 7 questions correctly.  Your Asian IQ is above average, making you an above average banana!")
}

if(total == 8) {
	alert("You answered all of the questions correctly, but there is no lucky red envelope for you!  If you were a true Asian, you would have known to fill out the bonus question to score 110 percent.")
}

}
//-->

