setUpPage(); function setUpPage(){ document.write("
    "); for(suindex = 0;suindex"); document.write(questionArray[suindex][0]); document.write(""); document.write(questionArray[suindex][3]); document.write("score"); 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 have another go.") }else{ var score = 0; for(csindex = 0;csindex