'); tstWindow.document.writeln('
'); for (loop = 0; loop < answers.length; loop++){ if (document.test.elements[answers[loop] + acc].checked) numRight++; acc = acc + numAnswers[loop];} acc = 0; tstWindow.document.writeln('
You answered ', Math.round((numRight / answers.length) * 100),'% of the questions correctly.
');
if (numRight != answers.length){
tstWindow.document.writeln('
You missed the following:
');
for (loop = 0; loop < answers.length; loop++){
if (!document.test.elements[answers[loop] + acc].checked)
tstWindow.document.writeln('#', loop+1, '
');
acc = acc + numAnswers[loop];}
tstWindow.document.writeln('
Feel free to look over the questions you missed. Then, try taking the test again and see if you can improve your score.
');}
else
tstWindow.document.writeln('
'); acc = 0; numRight = 0; tstWindow.document.writeln('