
//function total the quiz answers
// assigns correct answers in array.
function total()
{var tot = 0;
//answer#[0-4] 0=A, 1=B, 2=C, 3=D, 4=E 
if (document.quiz.answer0[0].checked == true) tot = 1;
if (document.quiz.answer1[2].checked == true) tot += 1;
if (document.quiz.answer2[4].checked == true) tot += 1;
if (document.quiz.answer3[3].checked == true) tot += 1;
if (document.quiz.answer4[2].checked == true) tot += 1;
if (document.quiz.answer5[1].checked == true) tot += 1;
if (document.quiz.answer6[4].checked == true) tot += 1;
if (document.quiz.answer7[0].checked == true) tot += 1;
if (document.quiz.answer8[4].checked == true) tot += 1;
if (document.quiz.answer9[1].checked == true) tot += 1;
if (document.quiz.answer10[0].checked == true) tot += 1;
if (document.quiz.answer11[2].checked == true) tot += 1;
if (document.quiz.answer12[3].checked == true) tot += 1;
if (document.quiz.answer13[0].checked == true) tot += 1;
if (document.quiz.answer14[3].checked == true) tot += 1;
if (document.quiz.answer15[0].checked == true) tot += 1;
if (document.quiz.answer16[2].checked == true) tot += 1;
if (document.quiz.answer17[3].checked == true) tot += 1;
if (document.quiz.answer18[0].checked == true) tot += 1;
if (document.quiz.answer19[3].checked == true) tot += 1;
if (document.quiz.answer20[3].checked == true) tot += 1;
if (document.quiz.answer21[2].checked == true) tot += 1;
if (document.quiz.answer22[0].checked == true) tot += 1;
if (document.quiz.answer23[4].checked == true) tot += 1;
if (document.quiz.answer24[0].checked == true) tot += 1;
if (document.quiz.answer25[2].checked == true) tot += 1;
if (document.quiz.answer26[2].checked == true) tot += 1;
if (document.quiz.answer27[1].checked == true) tot += 1;
if (document.quiz.answer28[0].checked == true) tot += 1;
if (document.quiz.answer29[2].checked == true) tot += 1;
if (document.quiz.answer30[4].checked == true) tot += 1;
if (document.quiz.answer31[0].checked == true) tot += 1;
if (document.quiz.answer32[3].checked == true) tot += 1;
if (document.quiz.answer33[4].checked == true) tot += 1;
if (document.quiz.answer34[1].checked == true) tot += 1;
if (document.quiz.answer35[4].checked == true) tot += 1;
if (document.quiz.answer36[3].checked == true) tot += 1;
if (document.quiz.answer37[1].checked == true) tot += 1;
if (document.quiz.answer38[3].checked == true) tot += 1;
if (document.quiz.answer39[2].checked == true) tot += 1;
if (document.quiz.answer40[0].checked == true) tot += 1;
if (document.quiz.answer41[1].checked == true) tot += 1;
if (document.quiz.answer42[4].checked == true) tot += 1;
if (document.quiz.answer43[3].checked == true) tot += 1;
if (document.quiz.answer44[1].checked == true) tot += 1;
if (document.quiz.answer45[0].checked == true) tot += 1;
if (document.quiz.answer46[2].checked == true) tot += 1;
if (document.quiz.answer47[0].checked == true) tot += 1;
if (document.quiz.answer48[1].checked == true) tot += 1;
if (document.quiz.answer49[4].checked == true) tot += 1;
if (document.quiz.answer50[3].checked == true) tot += 1;
if (document.quiz.answer51[1].checked == true) tot += 1;
if (document.quiz.answer52[2].checked == true) tot += 1;
if (document.quiz.answer53[0].checked == true) tot += 1;
if (document.quiz.answer54[1].checked == true) tot += 1;
if (document.quiz.answer55[2].checked == true) tot += 1;
if (document.quiz.answer56[0].checked == true) tot += 1;
if (document.quiz.answer57[1].checked == true) tot += 1;
if (document.quiz.answer58[3].checked == true) tot += 1;
if (document.quiz.answer59[2].checked == true) tot += 1;
if (document.quiz.answer60[4].checked == true) tot += 1;
if (document.quiz.answer61[3].checked == true) tot += 1;
if (document.quiz.answer62[2].checked == true) tot += 1;
if (document.quiz.answer63[0].checked == true) tot += 1;
if (document.quiz.answer64[1].checked == true) tot += 1;
if (document.quiz.answer65[4].checked == true) tot += 1;
if (document.quiz.answer66[3].checked == true) tot += 1;
if (document.quiz.answer67[0].checked == true) tot += 1;
if (document.quiz.answer68[4].checked == true) tot += 1;
if (document.quiz.answer69[0].checked == true) tot += 1;
if (document.quiz.answer70[1].checked == true) tot += 1;
if (document.quiz.answer71[2].checked == true) tot += 1;
if (document.quiz.answer72[4].checked == true) tot += 1;
if (document.quiz.answer73[1].checked == true) tot += 1;
if (document.quiz.answer74[1].checked == true) tot += 1;
if (document.quiz.answer75[0].checked == true) tot += 1;
if (document.quiz.answer76[2].checked == true) tot += 1;
if (document.quiz.answer77[4].checked == true) tot += 1;
if (document.quiz.answer78[4].checked == true) tot += 1;
if (document.quiz.answer79[3].checked == true) tot += 1;
if (document.quiz.answer80[1].checked == true) tot += 1;
if (document.quiz.answer81[1].checked == true) tot += 1;
if (document.quiz.answer82[0].checked == true) tot += 1;
if (document.quiz.answer83[1].checked == true) tot += 1;
if (document.quiz.answer84[3].checked == true) tot += 1;
if (document.quiz.answer85[2].checked == true) tot += 1;
if (document.quiz.answer86[2].checked == true) tot += 1;
if (document.quiz.answer87[4].checked == true) tot += 1;
if (document.quiz.answer88[0].checked == true) tot += 1;
if (document.quiz.answer89[3].checked == true) tot += 1;
if (document.quiz.answer90[1].checked == true) tot += 1;
if (document.quiz.answer91[2].checked == true) tot += 1;
if (document.quiz.answer92[4].checked == true) tot += 1;
if (document.quiz.answer93[3].checked == true) tot += 1;
if (document.quiz.answer94[1].checked == true) tot += 1;
if (document.quiz.answer95[0].checked == true) tot += 1;
if (document.quiz.answer96[0].checked == true) tot += 1;
if (document.quiz.answer97[4].checked == true) tot += 1;
if (document.quiz.answer98[1].checked == true) tot += 1;
if (document.quiz.answer99[2].checked == true) tot += 1;

                                                  
  

if (tot==0) document.quiz.totalscore.value ="你的成绩是0分，不及格";
if (tot==1) document.quiz.totalscore.value ="你的成绩是1分，不及格";
if (tot==2) document.quiz.totalscore.value ="你的成绩是2分，不及格";
if (tot==3) document.quiz.totalscore.value ="你的成绩是3分，不及格";
if (tot==4) document.quiz.totalscore.value ="你的成绩是4分，不及格";
if (tot==5) document.quiz.totalscore.value ="你的成绩是5分，不及格";
if (tot==6) document.quiz.totalscore.value ="你的成绩是6分，不及格";
if (tot==7) document.quiz.totalscore.value ="你的成绩是7分，不及格";
if (tot==8) document.quiz.totalscore.value ="你的成绩是8分，不及格";
if (tot==9) document.quiz.totalscore.value ="你的成绩是9分，不及格";
if (tot==10) document.quiz.totalscore.value ="你的成绩是10分，不及格";
if (tot==11) document.quiz.totalscore.value ="你的成绩是11分，不及格";
if (tot==12) document.quiz.totalscore.value ="你的成绩是12分，不及格";
if (tot==13) document.quiz.totalscore.value ="你的成绩是13分，不及格";
if (tot==14) document.quiz.totalscore.value ="你的成绩是14分，不及格";
if (tot==15) document.quiz.totalscore.value ="你的成绩是15分，不及格";
if (tot==16) document.quiz.totalscore.value ="你的成绩是16分，不及格";
if (tot==17) document.quiz.totalscore.value ="你的成绩是17分，不及格";
if (tot==18) document.quiz.totalscore.value ="你的成绩是18分，不及格";
if (tot==19) document.quiz.totalscore.value ="你的成绩是19分，不及格";
if (tot==20) document.quiz.totalscore.value ="你的成绩是20分，不及格";
if (tot==21) document.quiz.totalscore.value ="你的成绩是21分，不及格";
if (tot==22) document.quiz.totalscore.value ="你的成绩是22分，不及格";
if (tot==23) document.quiz.totalscore.value ="你的成绩是23分，不及格";
if (tot==24) document.quiz.totalscore.value ="你的成绩是24分，不及格";
if (tot==25) document.quiz.totalscore.value ="你的成绩是25分，不及格";
if (tot==26) document.quiz.totalscore.value ="你的成绩是26分，不及格";
if (tot==27) document.quiz.totalscore.value ="你的成绩是27分，不及格";
if (tot==28) document.quiz.totalscore.value ="你的成绩是28分，不及格";
if (tot==29) document.quiz.totalscore.value ="你的成绩是29分，不及格";
if (tot==30) document.quiz.totalscore.value ="你的成绩是30分，不及格";
if (tot==31) document.quiz.totalscore.value ="你的成绩是31分，不及格";
if (tot==32) document.quiz.totalscore.value ="你的成绩是32分，不及格";
if (tot==33) document.quiz.totalscore.value ="你的成绩是33分，不及格";
if (tot==34) document.quiz.totalscore.value ="你的成绩是34分，不及格";
if (tot==35) document.quiz.totalscore.value ="你的成绩是35分，不及格";
if (tot==36) document.quiz.totalscore.value ="你的成绩是36分，不及格";
if (tot==37) document.quiz.totalscore.value ="你的成绩是37分，不及格";
if (tot==38) document.quiz.totalscore.value ="你的成绩是38分，不及格";
if (tot==39) document.quiz.totalscore.value ="你的成绩是39分，不及格";
if (tot==40) document.quiz.totalscore.value ="你的成绩是40分，不及格";
if (tot==41) document.quiz.totalscore.value ="你的成绩是41分，不及格";
if (tot==42) document.quiz.totalscore.value ="你的成绩是42分，不及格";
if (tot==43) document.quiz.totalscore.value ="你的成绩是43分，不及格";
if (tot==44) document.quiz.totalscore.value ="你的成绩是44分，不及格";
if (tot==45) document.quiz.totalscore.value ="你的成绩是45分，不及格";
if (tot==46) document.quiz.totalscore.value ="你的成绩是46分，不及格";
if (tot==47) document.quiz.totalscore.value ="你的成绩是47分，不及格";
if (tot==48) document.quiz.totalscore.value ="你的成绩是48分，不及格";
if (tot==49) document.quiz.totalscore.value ="你的成绩是49分，不及格";
if (tot==50) document.quiz.totalscore.value ="你的成绩是50分，不及格";
if (tot==51) document.quiz.totalscore.value ="你的成绩是51分，不及格";
if (tot==52) document.quiz.totalscore.value ="你的成绩是52分，不及格";
if (tot==53) document.quiz.totalscore.value ="你的成绩是53分，不及格";
if (tot==54) document.quiz.totalscore.value ="你的成绩是54分，不及格";
if (tot==55) document.quiz.totalscore.value ="你的成绩是55分，不及格";
if (tot==56) document.quiz.totalscore.value ="你的成绩是56分，不及格";
if (tot==57) document.quiz.totalscore.value ="你的成绩是57分，不及格";
if (tot==58) document.quiz.totalscore.value ="你的成绩是58分，不及格";
if (tot==59) document.quiz.totalscore.value ="你的成绩是59分，不及格";
if (tot==60) document.quiz.totalscore.value ="你的成绩是60分，及格";
if (tot==61) document.quiz.totalscore.value ="你的成绩是61分，及格";
if (tot==62) document.quiz.totalscore.value ="你的成绩是62分，及格";
if (tot==63) document.quiz.totalscore.value ="你的成绩是63分，及格";
if (tot==64) document.quiz.totalscore.value ="你的成绩是64分，及格";
if (tot==65) document.quiz.totalscore.value ="你的成绩是65分，及格";
if (tot==66) document.quiz.totalscore.value ="你的成绩是66分，及格";
if (tot==67) document.quiz.totalscore.value ="你的成绩是67分，及格";
if (tot==68) document.quiz.totalscore.value ="你的成绩是68分，及格";
if (tot==69) document.quiz.totalscore.value ="你的成绩是69分，及格";
if (tot==70) document.quiz.totalscore.value ="你的成绩是70分，及格";
if (tot==71) document.quiz.totalscore.value ="你的成绩是71分，及格";
if (tot==72) document.quiz.totalscore.value ="你的成绩是72分，及格";
if (tot==73) document.quiz.totalscore.value ="你的成绩是73分，及格";
if (tot==74) document.quiz.totalscore.value ="你的成绩是74分，及格";
if (tot==75) document.quiz.totalscore.value ="你的成绩是75分，及格";
if (tot==76) document.quiz.totalscore.value ="你的成绩是76分，良好";
if (tot==77) document.quiz.totalscore.value ="你的成绩是77分，良好";
if (tot==78) document.quiz.totalscore.value ="你的成绩是78分，良好";
if (tot==79) document.quiz.totalscore.value ="你的成绩是79分，良好";
if (tot==80) document.quiz.totalscore.value ="你的成绩是80分，良好";
if (tot==81) document.quiz.totalscore.value ="你的成绩是81分，良好";
if (tot==82) document.quiz.totalscore.value ="你的成绩是82分，良好";
if (tot==83) document.quiz.totalscore.value ="你的成绩是83分，良好";
if (tot==84) document.quiz.totalscore.value ="你的成绩是84分，良好";
if (tot==85) document.quiz.totalscore.value ="你的成绩是85分，优秀";
if (tot==86) document.quiz.totalscore.value ="你的成绩是86分，优秀";
if (tot==87) document.quiz.totalscore.value ="你的成绩是87分，优秀";
if (tot==88) document.quiz.totalscore.value ="你的成绩是88分，优秀";
if (tot==89) document.quiz.totalscore.value ="你的成绩是89分，优秀";
if (tot==90) document.quiz.totalscore.value ="你的成绩是90分，优秀";
if (tot==91) document.quiz.totalscore.value ="你的成绩是91分，优秀";
if (tot==92) document.quiz.totalscore.value ="你的成绩是92分，优秀";
if (tot==93) document.quiz.totalscore.value ="你的成绩是93分，优秀";
if (tot==94) document.quiz.totalscore.value ="你的成绩是94分，优秀";
if (tot==95) document.quiz.totalscore.value ="你的成绩是95分，优秀";
if (tot==96) document.quiz.totalscore.value ="你的成绩是96分，优秀";
if (tot==97) document.quiz.totalscore.value ="你的成绩是97分，优秀";
if (tot==98) document.quiz.totalscore.value ="你的成绩是98分，优秀";
if (tot==99) document.quiz.totalscore.value ="你的成绩是99分，优秀";
if (tot==100) document.quiz.totalscore.value ="你的成绩是100分，非常优秀";



 }

