//  Copyright 1999-2004 Gisele Glosser.  All Rights Reserved.
//
//  Our interactive math lessons are shareware.  You may use our free demo lessons
//  on mathgoodies.com only.  You may NOT download nor save them.  You can purchase
//  a license to use all 70 of our lessons off line by visiting:
//  http://www.mathgoodies.com/cd/

function x08226313(whichSelected){var index=0;for(i=0;i<whichSelected.length;i++){if(whichSelected[i].checked){return i;}}return 0;}function x0653090547(form,whichQuestion){var optionChosen=x08226313(form.entry);if((whichQuestion==1)&&(form.entry[optionChosen].value=="choice3")||(whichQuestion==2)&&(form.entry[optionChosen].value=="choice2")||(whichQuestion==3)&&(form.entry[optionChosen].value=="choice1")||(whichQuestion==4)&&(form.entry[optionChosen].value=="choice3")||(whichQuestion==5)&&(form.entry[optionChosen].value=="choice1")||(whichQuestion==6)&&(form.entry[optionChosen].value=="choice2")||(whichQuestion==7)&&(form.entry[optionChosen].value=="choice1")||(whichQuestion==8)&&(form.entry[optionChosen].value=="choice3")||(whichQuestion==9)&&(form.entry[optionChosen].value=="choice2")||(whichQuestion==10)&&(form.entry[optionChosen].value=="choice3")){form.result.value="Correct!";}else{choice=optionChosen+1;form.result.value="Choice "+choice+" is incorrect.  Please try again.";}}//




