%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % CHECK SUBMIT BUTTON: COMPARE "GUESSED" QUESTION TAKER ANSWER WITH % "CORRECT" QUESTION GIVER ANSWER AND % THEN GO TO CORRECT RESPONSE (PAGE 1) OR % INCORRECT RESPONSE PAGE (PAGE 2) , ACCORDINGLY % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 90 30 %%EndProlog [ /T (Check_Submit_Button) /Rect [0 0 90 30] /Subtype /Widget /F 4 /FT /Btn /Ff 65540 /H /P /AP << /N {Submit_Up} /D {Submit_Down} >> /Action << /Subtype /JavaScript /JS( this.pageNum = 0; var isRight = true; var undefined; function adjustIsRight\(inAnswerName, inCorrectName\) { var theAnswerField = this.getField\(inAnswerName\); var theCorrectField = this.getField\(inCorrectName\); if \( theAnswerField != undefined \) { if \( theAnswerField.value != theCorrectField.value \) { isRight = false; } } } for \(theCount = 1; theCount < 6; theCount++\) { if \( "pageonecheck"+theCount != undefined \) adjustIsRight\("pageonecheck"+theCount, "checkanswer"+theCount\); } if \(isRight==true\) { this.pageNum = 1; } else { this.pageNum = 2; } ) >> /ANN pdfmark %%EOF