'); } if (browser_check=="n3_or_better"){ if (dest==1) document.mediaPlayer.SetSource(sound[1]); if (dest==2) document.mediaPlayer.SetSource(sound[2]); document.mediaPlayer.DoPlay(); } if(browser_check=="msie"){ doc.write(''); doc.write(' '); doc.close (); } } HEADLINE="//"; function makeArray(size){ this.length=size; for (var i=1;i<=size;i++) { this[i]=0; } } // var PMatching=1; //var QuizSize=question; verify = 0; ans="A"; SIZE = 4; marker=0; runs = 0; var showIt=0; // available=new makeArray(SIZE); wrong=new makeArray(SIZE); availSize=SIZE; wrongSize=0; var q=20; currentElement=SIZE; inReplay=false; done=true; justContinue=false; i=1; showAnswer=0; var FULL=0; var HIDE=0; var ema=0; var object=new Array(); var FONTT=0; var written=0; function makeTrue(questionNum) { totaltried ++; totalcorrect ++; written++; correctList=correctList+questionNum+"; "; if (SOUNDON1==1){ playSound(1);} if (HIDE==0){ document.MCQuiz2.src='Resources/Images/correct.gif'; } if (HIDE==1){ if (writtenAnswer == 0){ written=1; runs = 1; written= 1; } writtenAnswer=0; } ans="x"; } function winMax() { var strQuery = location.href.match(/\?.*$/); if(strQuery != '?quiz') { var windowprops="top=0,left=0,status,scrollbars,width="+screen.width+",height="+screen.height; var P3="
Your quiz and test session has ended!

"; window.document.write(P3); window.open(location.href + '?quiz', '', windowprops); } else { document.body.style.visibility = 'visible'; initMHT(); window.focus(); } } function winFull() { var strQuery = location.href.match(/\?.*$/); if(strQuery != '?quiz') { var P3="
Your quiz and test session has ended!

"; window.document.write(P3); window.open(location.href + '?quiz', '', 'fullscreen', scrollbars='true'); } else { document.body.style.visibility = 'visible'; initMHT(); window.focus(); } } function makeFalse(questionNum){ if (hints[questionNum] !="" ){ hints[questionNum]=(decodeIT(hints[questionNum])); showTip(200,200,hints[questionNum]); } incorrectList=incorrectList+questionNum + " ("+change1+"); "; totaltried ++; totalincorrect ++; written++; if (SOUNDON2==1){ playSound(2);} if (HIDE==0){ document.MCQuiz2.src='Resources/Images/incorrect.gif'; } if (HIDE==1){ if (writtenAnswer == 0){ written=1; runs = 1; written= 1; } writtenAnswer=0; } ans="x"; } function makeNew(questionNum){ document.MCQuiz2.src='Resources/Images/f.gif'; } function initAvail() { if (FULL!=0 && MHT==1){ return; } if (SCORM == true){ ScormStartUp(); ans="x"; } for (var i=1;i<=SIZE;i++) { available[i]=i; } availSize=SIZE; wrongSize=0; currentElement=SIZE; inReplay=false; done=false; this.bigbox = document.getElementById("bigbox"); this.bigbox.innerHTML = ""; initial(); getWord(); } function initMHT(){ if (SCORM == true){ ScormStartUp(); ans="x"; } for (var i=1;i<=SIZE;i++) { available[i]=i; } availSize=SIZE; wrongSize=0; currentElement=SIZE; inReplay=false; done=false; this.bigbox = document.getElementById("bigbox"); this.bigbox.innerHTML = ""; initial(); getWord(); } function initial(){ if (navigator.appName=="Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; } } function randomise(maximise) { var now=new Date(); var hour=now.getHours(); var minimise=now.getMinutes(); var sec=now.getSeconds(); quiz(); return ((((hour +1)*(minimise +1)*(sec))%maximise) + 1); } function WritAnswer(){ writtenAnswer=1; } function WritAnswer2(PassQues){ bg=PassQues; if (bg==null || bg=="?"){ bg = (decodeIT("//")); } runs=0; document.getElementById('button1').style.visibility = "hidden" checkWord(bg); runs =1; } function ShowRadio(AnswerString) { var AnsNum = -1; var AnsNumResult=-1; AnsNum =AnswerString.toLowerCase().indexOf('a)'); if (AnsNum != -1){ AnsNumResult=1; } AnsNum =AnswerString.toLowerCase().indexOf('b)'); if (AnsNum != -1){ AnsNumResult=2; } AnsNum =AnswerString.toLowerCase().indexOf('c)'); if (AnsNum != -1){ AnsNumResult=3; } AnsNum =AnswerString.toLowerCase().indexOf('d)'); if (AnsNum != -1){ AnsNumResult=4; } AnsNum =AnswerString.toLowerCase().indexOf('e)'); if (AnsNum != -1){ AnsNumResult=5; } AnsNum =AnswerString.toLowerCase().indexOf('f)'); if (AnsNum != -1){ AnsNumResult=6; } AnsNum =AnswerString.toLowerCase().indexOf('g)'); if (AnsNum != -1){ AnsNumResult=7; } document.getElementById('A').style.visibility = 'visible'; document.getElementById('B').style.visibility = 'visible'; document.getElementById('C').style.visibility = 'visible'; document.getElementById('D').style.visibility = 'visible'; document.getElementById('E').style.visibility = 'visible'; document.getElementById('F').style.visibility = 'visible'; document.getElementById('G').style.visibility = 'visible'; document.getElementById('continue1').style.visibility = 'visible'; document.getElementById('reload1').style.visibility = 'visible'; document.getElementById('calculate1').style.visibility = 'visible'; document.getElementById('submit1').style.visibility = 'visible'; document.getElementById('close1').style.visibility = 'visible'; if (AnsNumResult==6){ document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==5){ document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==4){ document.getElementById('E').style.visibility = "hidden"; document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==3){ document.getElementById('D').style.visibility = "hidden"; document.getElementById('E').style.visibility = "hidden"; document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==2){ document.getElementById('C').style.visibility = "hidden"; document.getElementById('D').style.visibility = "hidden"; document.getElementById('E').style.visibility = "hidden"; document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==1){ document.getElementById('B').style.visibility = "hidden"; document.getElementById('C').style.visibility = "hidden"; document.getElementById('D').style.visibility = "hidden"; document.getElementById('E').style.visibility = "hidden"; document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } if (AnsNumResult==-1){ document.getElementById('A').style.visibility = "hidden"; document.getElementById('B').style.visibility = "hidden"; document.getElementById('C').style.visibility = "hidden"; document.getElementById('D').style.visibility = "hidden"; document.getElementById('E').style.visibility = "hidden"; document.getElementById('F').style.visibility = "hidden"; document.getElementById('G').style.visibility = "hidden"; } } function uncheckRadio() { var choice1 = document.answerform.choice; for (i = 0; i < choice1.length; i++) { if ( choice1[i].checked = true ) choice1[i].checked = false; } } function getWord(){ quiz(); uncheckRadio() ans="x"; document.MCQuiz2.src='Resources/Images/arrow1.gif'; window.status="Multiple Choice Quiz Maker"; if (!inReplay){ currentElement=randomise(availSize); decodeIT(QUESTION[(available[currentElement])]); this.bigbox = document.getElementById("bigbox"); this.bigbox.innerHTML = resultString; ShowRadio(resultString); document.getElementById("DivMCQuiz").innerHTML=IMAGES[(available[currentElement])]; if (ANSWER[(available[currentElement])].length > 1 && (ANSWER[(available[currentElement])]).indexOf(' + ') == -1 ){ document.getElementById('button1').style.visibility = 'visible'; document.getElementById('continue1').style.visibility = 'visible'; document.getElementById('reload1').style.visibility = 'visible'; document.getElementById('calculate1').style.visibility = 'visible'; document.getElementById('submit1').style.visibility = 'visible'; document.getElementById('close1').style.visibility = 'visible'; writtenAnswer=1; WritAnswer(); } } else { currentElement=randomise(wrongSize); this.bigbox = document.getElementById("bigbox"); this.bigbox.innerHTML =decodeIT(QUESTION[(wrong[currentElement])]); ShowRadio(decodeIT(QUESTION[(wrong[currentElement])])); document.getElementById("DivMCQuiz").innerHTML=IMAGES[(wrong[currentElement])]; if (ANSWER[(wrong[currentElement])].length > 1 && (ANSWER[(wrong[currentElement])]).indexOf(' + ') == -1 ){ document.getElementById('button1').style.visibility = 'visible'; document.getElementById('continue1').style.visibility = 'visible'; document.getElementById('reload1').style.visibility = 'visible'; document.getElementById('calculate1').style.visibility = 'visible'; document.getElementById('submit1').style.visibility = 'visible'; document.getElementById('close1').style.visibility = 'visible'; writtenAnswer=1; WritAnswer(); } } } function checkAnswer(input){ if (input == "x" && AllowContinue == false){ alert("Please answer the question!"); return; } var showFeedback = document.getElementById("feedbacker"); showFeedback.style.visibility = "hidden"; // marker=0; checkWord(input); } function checkWord(input){ if (goExit ==1){ alert(decodeIT("//")); return; } runs=written; if (input ==""){ alert(decodeIT("//")); return; } runs =1; written=1; change1=input; change1 = trimString(change1); var q=answ; change=change1.toUpperCase(); input=change; change2=decodeIT(ANSWER[(available[currentElement])]); change2 = trimString(change2); change=change2.toUpperCase(); ANSWER[(available[currentElement])]=change; if (done || marker==1); else if (!inReplay) { var multianswer = ANSWER[(available[currentElement])]; var tester= trimString(trimString(multianswer)).indexOf(trimString(input)); if (multianswer.length > 1 && ANSWER[(available[currentElement])].indexOf(' + ') == -1 ){ tester=-1; } if (input==ANSWER[(available[currentElement])] || tester != -1) { if (SCORM == true){ SetScormScore(input,ANSWER[(available[currentElement])],available[currentElement]); } makeTrue(available[currentElement]); document.getElementById('button1').style.visibility = "hidden"; window.status="Multiple Choice Quiz Maker"; } else { wrong[wrongSize + 1]=available[currentElement]; wrongSize++; if (SCORM == true){ SetScormScore(input,ANSWER[(available[currentElement])],available[currentElement]); } makeFalse(available[currentElement]); if (showAnswer==0){ temp=window.confirm(decodeIT(quizStatus1) + ": " + decodeIT(ANSWER[(available[currentElement])])); var showFeedback = document.getElementById("feedbacker"); showFeedback.style.visibility = "hidden"; } document.getElementById('button1').style.visibility = "hidden"; window.status="Multiple Choice Quiz Maker"; } for (var i=currentElement;i 1 && ANSWER[(wrong[currentElement])].indexOf(' + ') == -1 ){ tester=-1; } if (input==ANSWER[(wrong[currentElement])] || tester != -1) { if (SCORM == true){ SetScormScore(input,ANSWER[(wrong[currentElement])],available[currentElement]); } makeTrue(available[currentElement]); document.getElementById('button1').style.visibility = "hidden"; window.status="Multiple Choice Quiz Maker"; } else if (input !=ANSWER[(wrong[currentElement])]){ if (showAnswer==0){ document.MCQuiz2.src='Resources/Images/incorrect.gif'; if (hints[wrong[currentElement]] !="" ){ hints[wrong[currentElement]]=(decodeIT(hints[wrong[currentElement]])); showTip(200,200,hints[wrong[currentElement]]); } temp=window.confirm(decodeIT(quizStatus1) +": "+decodeIT(ANSWER[(wrong[currentElement])])); var showFeedback = document.getElementById("feedbacker"); showFeedback.style.visibility = "hidden"; } document.getElementById('button1').style.visibility = "hidden"; window.status="Multiple Choice Quiz Maker"; } for (var i=currentElement;i")); else if (availSize==0 && wrongSize==0) { alert(decodeIT("//")); done=true; } else if (availSize==0 && wrongSize !=0 && (!inReplay)) { inReplay=true; alert(decodeIT("//")); written=1; runs = 1; ans="y"; justContinue=true; } else { justContinue=false; getWord(); } } } function clearAnswer() { } function Quit() { location.reload(); } function changeStat(){ window.status="revision"; } // var plonk=""; var jbegin="<" +"script type='text/javascript'>"; var invert='"'; var bingo=""; var address ="//"; // var quizname="//"; // var totaltried=0; var totalcorrect=0; var totalincorrect=0; incorrectAnswer=""; incorrectList =""; correctList=""; var reportWord=""; var popup="null"; // function wclose(){ if (FULL !==1){ goLoca(); return; } window.close(); Surprise(); if (ema==0 && !NS4 && !FULL==0){ window.close(); window.opener.close(); } ema=0; } function Surprise(){ if (FULL==0){ window.close(); } if (!NS4){ if (window.opener==null){ window.opener=self; } } if (window.opener !=null && FULL!==0 && !NS4) { window.close(); msgWindow.focus(); msgWindow.close(); } if(NS4){ window.close(); ema=0; } if (navigator.appName=='Netscape' ){ closeWindow(); window.close(); goLoca(); } } // function showScorm(correctList, incorrectList, totalcorrect,totaltried, totalincorrect, quiztitle, tries, SIZE, address){ if (totalcorrect==0 && totalincorrect==0){ alert("No results to show at the moment!"); return; } if(tries=="0"){ tries="Not recorded"; } ema=1; per=(totaltried-totalincorrect)/question*100; per=Math.round(per)+"%"; var squiztitle = quiztitle; while (squiztitle.indexOf("'") > -1) squiztitle = squiztitle.replace("'","`"); var sIncorrect = incorrectList; while (sIncorrect.indexOf("'") > -1) sIncorrect = sIncorrect.replace("'","`"); var sCorrect = correctList; while (sCorrect.indexOf("'") > -1) sCorrect = sCorrect.replace("'","`"); if (totaltried==0){ per="0%"; } ShowScore(correctList, incorrectList, totalcorrect,totaltried, totalincorrect,question, quiztitle, tries); calculate(); } function hideScorm(){ var noInput = ""; var debugText = document.getElementById("debugText"); if(debugText){ debugText.innerHTML = noInput; } } function AlertCC(n,correctList, incorrectList, totalcorrect,totaltried, totalincorrect, quiztitle, tries, SIZE, address) { temp=window.confirm(decodeIT('//')); if (temp==false){ return; } var myname=n; if (myname==null){ return; } if(tries=="0"){ tries="//"; } ema=1; if (myname==null || myname==""){ myname="//"; } // // var quiztaker=myname; var submitString= "'mailto:"+address+"?subject=//"+quiztaker+" &NAME=supporter &METHOD=POST &ENCTYPE=text/plain'>"; var re = / /g; submitString= submitString.replace(re,"%20"); myname=quizname+" " +myname; per=(totaltried-totalincorrect)/question*100; per=Math.round(per)+"%"; var squiztaker = quiztaker; while (squiztaker.indexOf("'") > -1) squiztaker = squiztaker.replace("'","`"); var squiztitle = quiztitle; while (squiztitle.indexOf("'") > -1) squiztitle = squiztitle.replace("'","`"); var sIncorrect = incorrectList; while (sIncorrect.indexOf("'") > -1) sIncorrect = sIncorrect.replace("'","`"); var sCorrect = correctList; while (sCorrect.indexOf("'") > -1) sCorrect = sCorrect.replace("'","`"); if (totaltried==0){ per="0%"; } var m1="//<!--TEXT#20-->" + jbegin + "function disableselect(e){"+ "return false;"+ "} "+ "function reEnable(){"+ "return true;"+ "} "+ "document.onselectstart=new Function ('return false');"+ "if (window.sidebar){"+ "document.onmousedown=disableselect;"+ "document.onclick=reEnable;"+ "} "+ plonk+ ""; var m2=" "; var m7="
"+ "
"+ ""+ "
"; var m3="

//

" + "
"+ "

"+'\n'+ "

"+ ""+ " "+ "

"+ jbegin+ "var message='';" + "function clickIE()" + "{if (document.all)" + "{(message);return false;}}" + "function clickNS(e) {" + "if" + "(document.layers||(document.getElementById&&!document.all))" + "{"+ "if (e.which==2||e.which==3) {(message);return false;}}}" + "if (document.layers)" + "{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}" + "else" + "{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}" + "document.oncontextmenu=new Function('return false');"+ "var FULLER=" +FULL+";"+ "var goLocal3=" + goLoca1+";"+'\n'+ "var goLocal4='"+goLoca2+"';"+'\n'+ "function wclosing(){if (navigator.appName == 'Netscape'){"+ "if (FULLER==1 || goLocal3==0){"+ "var parentwin = window.self; "+ "parentwin.opener = window.self;"+ "parentwin.close();" + "}"+ "var parentwin = window.self; "+ "parentwin.opener = window.self;"+ "parentwin.location.replace(goLocal4);"+ "}"+ "var parentwin = window.self; "+ "parentwin.opener = window.self;"+ "if (FULLER!==0){parentwin.close()};" + "history.go(-1);location.replace(goLocal4);return;} " + "function printit(){"+ "var NS = (navigator.appName == 'Netscape');"+ "var VERSION = parseInt(navigator.appVersion);"+ "if (NS) {" + "window.print();" + "} else {" + "window.location.reload();"+ "window.print();" + "} "+ "} "+ plonk + // "

"; var m5="
" + ""+ "" + "" + "" + ""+'\n'+ "//" + address +'\n'+ "//"+quiztaker+'\n'+ "//"+tries+'\n'+ "//"+ question +'\n'+ "//"+totaltried +'\n'+ "//" + totalcorrect +'\n'+ "//" + totalincorrect + '\n'+ "//"+per+'\n' + "//"+'\n'+incorrectList+'\n'+ "//" +'\n'+ correctList+"'"+'\n' + ">"+ '\n' + ""; var m6="

"+ "
"; window.document.write(m1+m2+m3+m4+m5+m6+ ' '); // } // function doit() { // if (FULL==2 && MHT==1){ document.body.style.visibility = 'hidden'; winMax(); return; } if (FULL==1 && MHT==1){ document.body.style.visibility = 'hidden'; winFull(); return; } //New Firefox 3x check if(navigator.oscpu && document.getElementsByClassName && FFPresent == "yes"){ var firefoxer = window.location.href; var gotLocal= firefoxer.indexOf("file:///"); if (gotLocal !=-1){ var myNewString = firefoxer.replace("file://", "file://localhost"); if (TestPop=='false' || TestPop == null && FFPresent == "yes"){ var P3 = "Continue" document.write("
Your browser is at present blocking the popups which are required for the fullscreen or maximised screen options with local files.
To avoid this warning in the future, you should adjust your browser and/or quiz settings.
Please click 'Continue' to start the quiz.
" + P3 + "
"); window.opener.close(); return; } } } if (window.opener ==null && FFPresent == "no" && NS4) { StopIt=1; if (StopIt != 0){ if (!firefoxer){ firefoxer=location.href; } var place = firefoxer; windowprops="top=0,left=0,fullscreen=yes,scrollbars"+",width="+screen.width+",height="+screen.height; var remote=open(place,"TEST", windowprops); return; } } if(window.opener==null && FULL==2){ StopIt=1; // if (StopIt != 0){ var place = location.href; var gotIt= place.indexOf("?"); if (gotIt==-1){ // i.e. not found windowprops="top=0,left=0,status,scrollbars,width="+screen.width+",height="+screen.height; var place = (location+'?'); window.document.write(""); var msgwindow = open('',"TESTER", windowprops); msgwindow.location.replace(place); } } } if (window.opener==null && FULL==1 && NS4) { StopIt=1; // if (StopIt != 0){ var place = (location); window.document.write(""); windowprops="top=0,left=0,fullscreen=yes,scrollbars"+",width="+screen.width+",height="+screen.height; var remote=open(place,"TEST", windowprops); window.parent.close(); } } if (window.opener==null && FULL==1 && !NS4) { StopIt=1; // if (StopIt != 0){ var place = (location+'?'); window.document.write(" "); var msgwindow=open('',"TESTER",'resizable=no, fullscreen=yes, scrollbars=yes, width=screen.width,height=screen.height'); msgwindow.location.replace(place); } } if (window.opener !=null && !NS4) { window.opener.document.open(); var P3="
Your quiz and test session has ended!

"; window.opener.document.write(P3); window.opener.document.close(); } if (window.opener !=null && navigator.appName != 'Microsoft Internet Explorer' ) { window.opener.document.open(); var P3="
Your quiz and test session has ended!
"; window.opener.document.write(P3); window.opener.document.close(); } } // function TTM() { var mop = 0; mop = history.length; if (mop == 0){ alert(decodeIT("//")); } history.back(); } function right(e) { if (navigator.appName=='Netscape' && (e.which==3 || e.which==2)) return false; else if (navigator.appName=='Microsoft Internet Explorer' && (event.button==2 || event.button==3)) { alert(decodeIT("//")); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; function onKeyDown() { if (FULL==1){ if ( (event.altKey) || ((event.keyCode==8) && (event.srcElement.type !="text" && event.srcElement.type !="textarea" && event.srcElement.type !="password")) || ((event.ctrlKey) && ((event.keyCode==78) || (event.keyCode==82)) ) || (event.keyCode==116) ) { event.keyCode=0; event.returnValue=false; if (window.opener !=null && FULL==1 && !NS4) { window.opener.blur(); msgWindow.focus(); } } } } // QUESTION=new makeArray(SIZE); ANSWER=new makeArray(SIZE); IMAGES=new makeArray(SIZE); var hints=new Array; // // function checkIt(verify){ if (verify ==0){ ans="A"; } if (verify ==1){ ans="A"; } if (verify ==2){ ans="B"; } if (verify ==3){ ans="C"; } if (verify ==4){ ans="D"; } if (verify ==5){ ans="E"; } if (verify ==6){ ans="F"; } if (verify ==7){ ans="G"; } } function calculate(){ var per if (PassCent != 0){ per=(totaltried-totalincorrect)/question*100; per=Math.round(per) if (per < PassCent){ alert("I'm sorry, but you have not passed the test!"); return; } if (Critical != 0){ alert("I'm sorry, but you have not passed the test!"); return; } per=Math.round(per)+"%"; alert("Your percentage correct is: "+ per + ". You have passed your test!"); return; } per=(totaltried-totalincorrect)/SIZE*100; per=Math.round(per)+"%"; if (totaltried==0){ per="0%"; } var displayIt = decodeIT("//")+": " + SIZE +'\n'+ decodeIT("//")+": " + totaltried +'\n'+ decodeIT("//")+ ": " + totalcorrect +'\n'+ decodeIT("//")+ ": " + totalincorrect + '\n'+ decodeIT("//") + ": "+per; alert(displayIt) } function firstCheck(){ } // -->


<<// >>


***//***



        A       B        C        D        E        F        G      

This is the feedback!