var cheat = false; abArray = ["a","b","c","d"]; setUpPage(); function setUpPage(){ for(suindex = 0;suindex
"); document.write((suindex+1) + "
"); document.write("
" + questionArray[suindex][0] + "
"); document.write("
"); for(inindex = 1;inindex<4;inindex++){ //<5 = number of choices, change 6 lines below as well. document.write("" + questionArray[suindex][inindex] + "
"); } document.write("
"); document.write("
"); document.write((suindex+2) + "
"); document.write("
" + questionArray[suindex+1][0] + "
"); document.write("
"); for(inindex = 1;inindex<4;inindex++){ //<5 = number of choices, change 6 lines below as well. document.write("" + questionArray[suindex+1][inindex] + "
"); } document.write("

 

"); } { document.write("
"); } } var qArray = new Array(document.form1.q1,document.form1.q2,document.form1.q3,document.form1.q4,document.form1.q5,document.form1.q6); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5,document.images.im6); function checkAnswers(){ var qArray = new Array(document.form1.q1,document.form1.q2,document.form1.q3,document.form1.q4,document.form1.q5,document.form1.q6); var imageArray = new Array(document.images.im1,document.images.im2,document.images.im3,document.images.im4,document.images.im5,document.images.im6); score = 0; if (cheat) { alert("Press Start again and then try again") } else { for(qloop=0;qloop