//function total the quiz answers
// assigns correct answers in array.
function total()
{var tot = 0;
//answer#[0-3] 0=A, 1=B, 2=C, 3=D 
if (document.quiz.answer0.value == "Homo erectus") tot = 1;

if ((document.quiz.answer1[0].value == "进化论")&&(document.quiz.answer1[1].value == "文化相对论")==true) tot += 2;
   else if ((document.quiz.answer1[0].value == "文化相对论")&&(document.quiz.answer1[1].value == "进化论")==true) tot += 2;

if (document.quiz.answer2.value =="适应") tot += 1;
 
if ((document.quiz.answer3[0].value == "肾")&&(document.quiz.answer3[1].value == "输尿管")&&(document.quiz.answer3[2].value == "尿道")&&(document.quiz.answer3[3].value == "膀胱")==true) tot += 4;
  
if ((document.quiz.answer4[0].value == "南方古猿"||"南猿")&&(document.quiz.answer4[1].value == "直立人")&&(document.quiz.answer4[2].value == "早期智人")&&(document.quiz.answer4[3].value == "晚期智人")==true) tot += 4;

if (document.quiz.answer5[3].checked == true) tot += 8;
  
if (document.quiz.answer6[1].checked == true) tot += 8;
  
if (document.quiz.answer7[3].checked == true) tot += 8;
 
if (document.quiz.answer8[0].checked == true) tot += 8;
  
if (document.quiz.answer9[3].checked == true) tot += 8;
if (document.quiz.answer10[0].checked == true) tot +=0;
 else if ((document.quiz.answer10[1].checked == true)&&(document.quiz.answer10[2].checked == true)&&(document.quiz.answer10[3].checked == true)==true) tot += 8;
if (document.quiz.answer11[0].checked == true) tot +=0;
  else if (document.quiz.answer11[2].checked == true) tot +=0;
  else if ((document.quiz.answer11[1].checked == true)&&(document.quiz.answer11[3].checked == true)==true) tot += 8;
if (document.quiz.answer12[1].checked == true) tot +=0;
  else if ((document.quiz.answer12[0].checked == true)&&(document.quiz.answer12[2].checked == true)&&(document.quiz.answer12[3].checked == true)==true) tot += 8;
if (document.quiz.answer13[2].checked == true) tot +=0;
  else if ((document.quiz.answer13[0].checked == true)&&(document.quiz.answer13[1].checked == true)&&(document.quiz.answer13[3].checked == true)==true) tot += 8;
if(document.quiz.answer14[3].checked == true) tot +=0;
   else if ((document.quiz.answer14[0].checked == true)&&(document.quiz.answer14[1].checked == true)&&(document.quiz.answer14[2].checked == true)==true) tot += 8;
if (document.quiz.answer15[1].checked == true) tot += 1;
if (document.quiz.answer16[0].checked == true) tot += 1;
if (document.quiz.answer17[1].checked == true) tot += 1;
if (document.quiz.answer18[1].checked == true) tot += 1;
if (document.quiz.answer19[0].checked == true) tot += 1;
if (document.quiz.answer20[1].checked == true) tot += 1;
if (document.quiz.answer21[0].checked == true) tot += 1;
if (document.quiz.answer22[0].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分，非常优秀";


 }
