setUpPage(); function setUpPage(){ for(suindex = 0;suindex"); document.write("
" + (suindex+1) + " " + questionArray[suindex][0] + "
"); document.write("
 " + questionArray[suindex][1] + "
"); document.write("
  
"); document.write("

"); document.write(""); } { document.write("

"); } } var answerArray = new Array(document.form1.ans1,document.form1.ans2,document.form1.ans3,document.form1.ans4,document.form1.ans5,document.form1.ans6); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5,document.images.im6); function checkScore() { var answerArray = new Array(document.form1.ans1,document.form1.ans2,document.form1.ans3,document.form1.ans4,document.form1.ans5,document.form1.ans6); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5,document.images.im6); if(cheat){ alert("Please press Start again to try again.") }else{ var score = 0; for(csindex = 0;csindex