<!--/**************************************************Script by Howard ChenGet more JavaScripts at http://start.at/javascripts/Bugs report to jdeveloper@telebot.netThis script is free as long as its credits is kept**************************************************///===================Changable Data==================var radioNum      = 15                //Total number of questionsvar CorrectAnswer = "AEDDDCEECEEEEEA" //The correct answers in ordervar maxPt         = 15              //Total possible points//==============DO NOT EDIT BELOW THIS LINE EXCEPT THE COMMENTS PART=============var CompareAnswer = "ABCDE"var radioTax      = maxPt / radioNumvar log           = ""var CheckPoint    = new Array(radioNum)var timeStart = new Date()for (i=0; i<radioNum; i++)  CheckPoint[i]  = i*5 + CompareAnswer.indexOf(CorrectAnswer.charAt(i))function CheckSum ()  {  log = ""  var ansLog = ""  for (var i = 0; i<radioNum*5; i+=5) {    for (var j = 0; j < 5; j++) {        if (document.ANSWER.elements[i+j].checked == true) ansLog += CompareAnswer.charAt(j)        }    if (ansLog.length <= i/5) {ansLog += "-"}    }  var YourScore = 0  for (i=0; i<radioNum; i++)    {    if (document.ANSWER.elements[CheckPoint[i]].checked == true)      {      YourScore += radioTax      }    }  var scoreSheet = window.open("","","width=350,height=400,toolbars=no,status=no,scrollbars=yes,resizable=yes")  MyPress = "<H3 align=center>ExRx.net Weight Room Quiz Results</H3>"  MyPress += "<B>Time Started:</B> " + timeStart.getHours() + ":" + timeStart.getMinutes() + ":" + timeStart.getSeconds() + "<BR>"  var timeTurnIn = new Date()  MyPress += "<B>Time Turned In:</B> " + timeTurnIn.getHours() + ":" + timeTurnIn.getMinutes() + ":" + timeTurnIn.getSeconds() + "<BR>"  MyPress += "<B>Summary:</B><BR><CENTER><TABLE WIDTH=100%>"  MyPress += "<TR><TD><CENTER><TT>Question<TD><CENTER><TT>Answer<TD><CENTER><TT>Your Answer<TD><CENTER><TT>Status</TR>"  for (var i=0; i<radioNum; i++) {    MyPress += "<TR><TD><CENTER><TT>" + (i+1) + "<TD><CENTER><TT>" + CorrectAnswer.charAt(i) + "<TD><CENTER><TT>" + ansLog.charAt(i)    if (CorrectAnswer.charAt(i) == ansLog.charAt(i)) MyPress += "<TD><CENTER><TT>Correct"    else MyPress += "<TD><CENTER><TT>Incorrect"    MyPress += "</TR>"    }  MyPress += "</TABLE></CENTER><BR>"  MyPress += "<B>Score:</B> " + YourScore + " out of " + maxPt + " possible points.<BR>"  MyPress += "<B>Comments:</B> "  if      (YourScore == 15) { MyPress += "Way to go!!<BR>" }  else if (YourScore >= 12)  { MyPress += "Pretty good!<BR>" }  else if (YourScore >= 9)  { MyPress += "Come on, you can do better than that!<BR>" }  else                       { MyPress += "Get someone to help you before you walk into a weight room.<BR>" }  scoreSheet.document.write(MyPress)  scoreSheet.document.close()  scoreSheet.focus()  }//--> 