setUpPage(); function setUpPage(){ for(suindex = 0;suindex " + (suindex+1) + " "); document.write(""); document.write(""); document.write(questionArray[suindex][4]); } } var answerArray = new Array(document.form1.ans1,document.form1.ans2,document.form1.ans3,document.form1.ans4,document.form1.ans5); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5); function checkScore() { var answerArray = new Array(document.form1.ans1,document.form1.ans2,document.form1.ans3,document.form1.ans4,document.form1.ans5); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5); if(cheat){ alert("Please press reset to try again.") }else{ var score = 0; for(csindex = 0;csindex