"; var noBorderBodyTagFrame2=" "; var soundEnable = 0; var okSound=''; var errSound=''; var warnSound=''; var valid = new init_array(1); var nScore = new init_array(1); var maxScore = new init_array(1); var questions=1; var qstHead = new init_array(1); var pageWidth = 80; var groups = new init_array(0); var quizTitle=""; var maxtime=1800; var keycode = new init_array(6); var keyword = 'syskey'; MakeKeyCode(); var los = 0; var maxvoto = 10; var minvoto = 0; var roundvoto = 1; var voto = 0; var silent = 0; var quizRetire = 0; var showReport = 1; var ncols_report = 1; var valutaQuiz = 1; var falseQuests = 0; var invisibleQuests = 0; var auto_repeat = 0; var man_repeat = 0; var n_repeat = 0; var reviewQuiz = 0; var finalMess = ''; var printCpRg=1; var filename = 'Ch2b'; var topChartFile=''; var pesi = new init_array(1); var allAnsReport = new init_array(1); var author = ''; var mediaDir = 'media'; var questSlide = 0; var lockRightAns = 0; var resultBoxKind = 0; var reportNotation = 1; var remRepAlways = 0; var confirmEachQst = 1; var typeOfSub = 0; var isResultsPageDark = 0 var ordineDomande = new init_array(0); var typeOfQuest = new init_array(2); var omitPoint = new init_array(0); var nc=0, ns=0, nr; var end_test=0; var userName=""; var identityName=""; var computeMarkErr = 0; var okIcon = "smiling.gif"; var koIcon = "no.gif"; var warnIcon = "warn.gif"; var checkIcon = "check.gif"; function setCookie(cookie_name,cookie_value,minuti) { var expdate= new Date(); cookie_value+="#"; expdate.setTime(expdate.getTime()+(60000*minuti)); document.cookie = cookie_name+"="+escape(cookie_value)+"; expires="+expdate.toGMTString(); } function getCookie(cookie_name) { var arg; var alen; var clen = document.cookie.length; var i=0,j,k; var valore; arg = cookie_name + "="; alen=arg.length while (i'; } } else { if (getBrowser()=="NS") { tagSound = ''; } } return tagSound; } function PlaySound(suonoObj) { if (soundEnable==0) return; if (navigator.appName == 'Netscape') { if (parseInt(navigator.appVersion) >= 3) { suonoObj.play(false); if (navigator.javaEnabled()) { if (navigator.mimeTypes['audio/midi'] != null) { if (navigator.mimeTypes['audio/midi'].enabledPlugin != null) { suonoObj.play(false); } else alert('Your browser does not have a plug-in to play audio/midi mime types!'); } else alert('Your browser does not support the audio/midi mime type!'); } else alert('Requires Java enabled to be enabled'); } else alert('Only works in Netscape Navigator 3 or greater'); } else { suonoObj.play(); } } var dlgList = new init_array(10); var nDlgs = 0; function MyDialog(dlgId,filename,x,y) { this.dlgId = dlgId; this.filename = filename; this.x = x; this.y = y; this.opened = 0; this.handle = 0; } function CreateDialog(dlgId,filename,x,y) { var my_dialog; var i,found=0; for (i=0; i=0; i--) { if (str.charAt(i)!=' ') break; } iStop = i; if ((iStart!=0)||(iStop!=str.length-1)) return str.substring(iStart,iStop+1); return str; } function rand(n) { return Math.floor(Math.random()*n); } function DataToStringa() { var obj = new Date(); var mese,giorno; var nome=""; var stringa=""; var strData; giorno = obj.getDay(); switch(giorno) { case 0: nome = "Dimanche"; break; case 1: nome = "Lundi"; break; case 2: nome = "Mardi"; break; case 3: nome = "Mercredi"; break; case 4: nome = "Jeudi "; break; case 5: nome = "Vendredi"; break; case 6: nome = "Samedi"; break; } strData = nome+", "+obj.getDate(); mese = obj.getMonth(); switch(mese) { case 0: nome = "Janvier"; break; case 1: nome = "Février"; break; case 2: nome = "Mars"; break; case 3: nome = "Avril "; break; case 4: nome = "Mai"; break; case 5: nome = "Juin"; break; case 6: nome = "Juillet"; break; case 7: nome = "Août"; break; case 8: nome = "Septembre"; break; case 9: nome = "Octobre"; break; case 10: nome = "Novembre"; break; case 11: nome = "Décembre"; } strData += " "+nome+" "+obj.getYear(); strData += " - "; if (obj.getHours()<10) strData += "0" + obj.getHours(); else strData += obj.getHours(); strData += ":"; if (obj.getMinutes()<10) strData += "0" + obj.getMinutes(); else strData += obj.getMinutes(); strData += ":"; if (obj.getSeconds()<10) strData += "0" + obj.getSeconds(); else strData += obj.getSeconds(); return strData; } function getBrowserVers() { return parseInt (navigator.appVersion.charAt(0)); } function getBrowser() { if (navigator.appName=="Netscape") return "NS"; if (navigator.appName=="Microsoft Internet Explorer") return "IE"; return ""; } function pluginInstalled(str) { var i; for (i=0; i255)) return "NULL"; car = '%'+dec_to_hex(n); return unescape(car); } function DecodeString(msg) { var i,j,n; var decode_msg=""; var num; var car; n = keyword.length; j=0; for(i=0;i127)) { PrintWrongKeyword(); return ""; } car = '%'+dec_to_hex(num); decode_msg+=unescape(car); j++; } return decode_msg; } function DecodeNumber(i,n,minNum,maxNum) { var num,lung; lung = keyword.length; num=i-keycode[n%lung]; if ((nummaxNum)) PrintWrongKeyword(); return num; } function CodeString(msg) { var i,n; var code_msg=""; var c=0; n = keyword.length; for (i=0;i127) c = 127 + keycode[i%n]; else c = ASCIItoInt(msg.charAt(i)) + keycode[i%n]; if (c<10) code_msg += " "+c; else if (c<100) code_msg += " "+c; else code_msg += ""+c; } return code_msg; } function MakeKeyCode() { var i,num; var car; for (i=0;i='a')&&(car<='z')) { keycode[i]=num-97; continue; } if ((car>='A')&&(car<='Z')) { keycode[i]=num-65; continue; } keycode[i]=0; } } function AnsReport(choice,value,rem,data,answer) { this.choice = choice; this.valuation = value; this.remark = rem; this.data = data; this.answer = answer; } function doValuate(n) { if (typeOfQuest[n]==1) doValuateMultiAns(n); else if (typeOfQuest[n]==101) doValuateWithPoints(n); else if (typeOfQuest[n]==2) doValuateBoolAns(n); else if (typeOfQuest[n]==3) doValuateOpenAns(n); else if (typeOfQuest[n]==4) doValuateFillGap(n); else if (typeOfQuest[n]==5) doValuateMatching(n); } function doValuateMultiAns(n) { nScore[n] = getGuessAns(n); maxScore[n] = getNumAns(n); if (nScore[n]==maxScore[n]) valid[n]=1; else valid[n]=-1; } function doValuateWithPoints(n) { nScore[n] = getScore(n); maxScore[n] = ConvertPointToMark(n,nScore[n]); valid[n]=5; } function doValuateBoolAns(n) { nScore[n] = getGuessAns(n); maxScore[n] = getNumAns(n); if (nScore[n]==maxScore[n]) valid[n]=1; else if (nScore[n]==0) valid[n]=-1; else valid[n]=3; } function doValuateFillGap(n) { nScore[n] = getGuessFillGap(n); maxScore[n] = getNumAns(n); if (nScore[n]==maxScore[n]) valid[n]=1; else if (nScore[n]==0) valid[n]=-1; else valid[n]=3; } function doValuateMatching(n) { nScore[n] = getGuessMatch(n); maxScore[n] = getNumAns(n); if (nScore[n]==maxScore[n]) valid[n]=1; else if (nScore[n]==0) valid[n]=-1; else valid[n]=3; } function doValuateOpenAns(n) { nScore[n] = 0; maxScore[n] = 0; valid[n] = 2; } function getGuessAns(n) { var j,guess=0; for (j=0;j0)&&(choice==1)) || ((value<0)&&(choice==0))) return 1; return 0; } function getGuessMatch(n) { var j,guess=0; for (j=0;j0) msg += Lettera(j)+' '; } return msg; } function getNumOfRightAns(n) { var j,value,num=0; for (j=0;j0) num++; } return num; } function getListOfSelAns(n) { var j,value,msg=''; if (typeOfQuest[n]==3) { return allAnsReport[n][0].choice; } for (j=0;j=60) nc++; else ns++; } else if (valid[i]==5) { ratio = 100 * maxScore[i] / maxvoto; if (ratio>=60) nc++; else ns++; } if (valid[i]!=0) nr--; if ((valid[i]==2)||(valid[i]==4)) nexcl++; } if ((questSlide==1)&&(lockRightAns==1)) { if (nc + nexcl == questions) return 1; } else { if (nr==0) return 1; } return 0; } var ctmnow=0,cnewdt; var time,oldtime; function StartTime() { var data,sec; data = new Date(); sec = Math.floor(data.getTime()/1000); return sec; } function getTimeString(deltatime) { var resto,h,m,s; var str; h = Math.floor(deltatime/3600); resto = deltatime%3600; m = Math.floor(resto/60); s = resto%60; if (h<10) h='0'+h; if (m<10) m='0'+m; if (s<10) s='0'+s; str = h+":"+m+":"+s; return str; } function determinaOrdineIniziale(nvett) { var i,count,n; var nuovoPezzo; this.length=nvett; for (i=0; i"); doc.writeln(""); doc.writeln(""); doc.writeln(""); doc.writeln(""); } } function getSelezione(obj) { var i; for (i=0; i1) msg+=nc+" correct et "; if (nc==1) msg+=" un seul exact et "; if (nc==0) msg+=" rien exact et "; if (ns>1) msg+=ns+" faux."; if (ns==1) msg+=" un seul faux."; if (ns==0) msg+=" rien faux."; msg+=" Vous devez répondre à "; if (nr>1) msg+=nr+" questions."; else msg+=" un question."; window.status=msg; } function checkRisposta(checkBox,risp,n) { if ( ((checkBox.checked==true) && (isRightAns(n,risp)==1)) || ((checkBox.checked==false) && (isRightAns(n,risp)==0)) ) return 1; return 0; } function checkRispostaBooleana(radioBox,risp,n) { if ( ((radioBox[0].checked==true) && (risp[n]==1)) || ((radioBox[1].checked==true) && (risp[n]==0)) ) return 1; return 0; } function checkTrueOrFalse(radioBox) { if ( (radioBox[0].checked==false) && (radioBox[1].checked==false)) return 0; return 1; } function isRightAns(nAns,risp) { var i; for (i=0; i"; tagBoxImage = ""; half_index = Math.ceil(questions/2); index13 = Math.ceil(questions/3); index23 = Math.ceil(2*questions/3); index14 = Math.ceil(questions/4); index34 = Math.ceil(3*questions/4); col_width = Math.floor(100 / ncols_report); documento.writeln("

"); for (k=0;k\n"); } if ((k==0)&&(ncols_report>=2)) { documento.writeln("
\n"); } if ((k==half_index)&&((ncols_report==2)||(ncols_report==4))) { documento.writeln(""); } if (ncols_report==3) { if ((k==index13)||(k==index23)) { documento.writeln(""); } } if (ncols_report==4) { if ((k==index14)||(k==index34)) { documento.writeln(""); } } i = ordineDomande[k]; if (valid[i]==4) continue; documento.writeln(""+n+" "+qstHead[i]+"
"); n++; documento.writeln(""); if (valid[i]==1) documento.writeln("Bonne réponse
"); else if (valid[i]==-1) documento.writeln("Mauvaise réponse
"); else if (valid[i]==2) documento.writeln("Questions non évaluées
"); else if (valid[i]==3) { if (typeOfQuest[i]==2) documento.writeln("Phrases correctes "+nScore[i]+" sur "+maxScore[i]+"
"); else if (typeOfQuest[i]==4) documento.writeln("mots de conjecture "+nScore[i]+" sur "+maxScore[i]+"
"); else if (typeOfQuest[i]==5) documento.writeln("Apparier "+nScore[i]+" sur "+maxScore[i]+"
"); } else if (valid[i]==5) { documento.write("scores "+nScore[i]); if (groups[i]==0) documento.writeln(" (MARQUE "+maxScore[i]+")
"); else if (groups[i]==1) documento.writeln("
Les points ont ajouté avec précédente la question
"); else if (groups[i]==2) documento.writeln("
MARQUE (calculs de la somme d'une masse de prochaines questions): "+maxScore[i]+"
"); } documento.writeln("
"); if (valid[i]==2) { documento.write("

"+allAnsReport[i][0].choice+"

"); continue; } documento.writeln("
"); documento.writeln(""); for (j=0;j0; } if (isGuess) documento.write(" "); else documento.write(" "); documento.write(""); choice = allAnsReport[i][j].choice; if (typeOfQuest[i]==2) { documento.write(""); else documento.write(tagBoxImage+""); documento.write(""); else documento.write(tagBoxImage+""); } else if (typeOfQuest[i]==4) { if (getGuessFillGapN(i,j)) documento.write(""); else { documento.write(""); else if (m==0) { documento.write(""); else documento.write(""); } documento.writeln(""); } documento.writeln("
Bonne réponse
Mauvaise réponse "); documento.write(Lettera(j)); documento.write(" "); PrintTrueOrFalse(documento,1); documento.write(" "); if (choice==1) documento.write(tagOkImage+" "); PrintTrueOrFalse(documento,0); documento.write(" "); if (choice==0) documento.write(tagOkImage+""+choice+""+choice+" "); for (l=0; l"); } } else if (typeOfQuest[i]==5) { m = getGuessMatchN(i,j); if (m==1) documento.write(""+choice[0]+" - "+choice[1]+""+choice[0]+" - "); documento.write(""+choice[1]+""); documento.write(" "); for (l=0; l"); } else { documento.write(""+choice[0]+" - "+choice[1]+""); } } else { if (choice==1) documento.write(""+tagOkImage+""+tagBoxImage+""); if (valid[i]==5) { value = allAnsReport[i][j].valuation; data = allAnsReport[i][j].data; documento.write(" ("+value+") "); if (data!=0) documento.write(" ("+data+") "); } if ((typeOfQuest[i]==1)||(typeOfQuest[i]==101)) { if (allAnsReport[i][j].answer!="") documento.write(allAnsReport[i][j].answer+"
"); if ((choice==1)||(remRepAlways==1)) documento.write(""+allAnsReport[i][j].remark+""); } documento.writeln("

"); } documento.writeln("
"); } function PrintResultTopBar(doc) { if ((showReport==1)&&(dhtmlEnabled==1)) { doc.writeln("
\n"); doc.writeln("\n"); doc.writeln("
Résultat du test\n"); doc.writeln("IMPRIMER | \n"); if (man_repeat) doc.writeln("RECOMMENCER | \n"); if (topChartFile!='') doc.writeln("Top Chart | \n"); doc.writeln("ABANDON\n"); doc.writeln("

\n"); } } function PrintLinkBack(documento) { documento.writeln("
\n"); documento.writeln(""); documento.writeln("
"); PrintATagLinkBack(documento); documento.writeln("\n"); documento.writeln("IMPRIMER | \n"); if (man_repeat) documento.writeln("RECOMMENCER | \n"); if (topChartFile!='') documento.writeln("Top Chart | \n"); documento.writeln("ABANDON\n"); documento.writeln("

\n"); } function PrintFrame(documento,titolo,msg) { documento.clear(); documento.open(); PrintOpenHTML(documento,titolo,1); documento.writeln (bodyTagFrame1); documento.writeln (msg); documento.writeln (" "); documento.close(); } function PrintJSResult(doc) { doc.writeln("\n"); } function PrintAnswer(n,textField) { var msg; var explan = new initListOfRemark(n); if (silent==1) { if (PrintAnswer.arguments.length>1) textField.value = "Réponse choisie"; } else { if (valid[n]==1) { if (PrintAnswer.arguments.length>1) textField.value = "Bonne réponse"; msg = "Bien ! Bonne réponse"; } else { msg = "Faux ! La réponse correcte est " + getListOfRightAns(n); if (PrintAnswer.arguments.length>1) textField.value = msg; msg = "" + msg + ""; } PrintAnswerOnTopFrame(msg,explan,GetSoundName(n)); } end_test = CountAnswers(); PrintStatusBar(); PrintBottomFrame(); if (end_test==1) { window.status = ""; window.alert("Vous avez répondu à toutes les questions"); EndQuiz(); } return end_test; } function PrintOpenAnswer(n,outMsg) { outMsg.value = "Réponse complète"; end_test = CountAnswers(); PrintStatusBar(); PrintBottomFrame(); if (end_test==1) { window.status = ""; window.alert("Vous avez répondu à toutes les questions"); EndQuiz(); } return end_test; } function PrintBooleanAnswer(n,textField) { var msg,msg2,msgFormat; var explan= new initOneElementVector(); explan[0] = ""; if (silent==0) { msg = "Bonnes réponses " + nScore[n] + " / " + getNumAns(n); textField.value = msg; msgFormat = "" + msg + ""; if (nScore[n]"; if (getGuessAns(n)"); frames.quiz_top.document.writeln (message+"
"); for (i=0;i") } frames.quiz_top.document.writeln (""); if (soundFile!='') frames.quiz_top.document.writeln (""); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); } function PrintBottomFrame() { var msg; frames.quiz_status.document.clear(); frames.quiz_status.document.open(); PrintOpenHTML(frames.quiz_status.document,"",1); frames.quiz_status.document.writeln (noBorderBodyTagFrame2); frames.quiz_status.document.writeln ("
"); if (maxtime>0) { frames.quiz_status.document.writeln (""); } else { frames.quiz_status.document.writeln (""); } if (silent==0) { msg=""; msg+=""; msg+=""; } else { msg=""; } if (quizRetire==1) msg+=""; else msg+=""; frames.quiz_status.document.writeln (msg+"
correct : "+nc+"faux : "+ns+"faire : "+nr+"répondre :"+nr+"
"); frames.quiz_status.document.close(); } function PrintWrongKeyword() { frames.quiz_top.document.clear(); PrintOpenHTML(frames.quiz_top.document,"",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); frames.quiz_main.document.clear(); frames.quiz_main.document.open(); PrintOpenHTML(frames.quiz_main.document,"",1); frames.quiz_main.document.writeln (bodyTagFrame1); frames.quiz_main.document.writeln("
Attention !
"); frames.quiz_main.document.writeln ("Le mot clé est erroné
"); frames.quiz_main.document.writeln ("Impossible de continuer le test
"); frames.quiz_main.document.writeln ("Pour plus d'informations contacter l'auteur du test
"); frames.quiz_main.document.writeln("

"); frames.quiz_main.document.writeln("

"); frames.quiz_main.document.writeln (" "); frames.quiz_main.document.close(); PrintCopyright(); } function PrintNoReload() { frames.quiz_top.document.clear(); PrintOpenHTML(frames.quiz_top.document,"",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); frames.quiz_main.document.clear(); frames.quiz_main.document.open(); PrintOpenHTML(frames.quiz_main.document,"",1); frames.quiz_main.document.writeln (bodyTagFrame1); frames.quiz_main.document.writeln("


Attention !
"); frames.quiz_main.document.writeln ("Le rechargement du test n'est pas autorisé
"); frames.quiz_main.document.writeln ("Impossible de démarrer le test
"); frames.quiz_main.document.writeln ("Pour plus d'informations contacter l'auteur du test
"); frames.quiz_main.document.writeln("

"); frames.quiz_main.document.writeln("

"); frames.quiz_main.document.writeln (" "); frames.quiz_main.document.close(); PrintCopyright(); } function PrintCopyright() { frames.quiz_status.document.clear(); frames.quiz_status.document.open(); PrintOpenHTML(frames.quiz_status.document,"Info",1); frames.quiz_status.document.writeln (bodyTagFrame2); if (printCpRg==1) { frames.quiz_status.document.writeln("
"); frames.quiz_status.document.writeln(""); frames.quiz_status.document.writeln("Ce test a été créé "); if (author!='') frames.quiz_status.document.writeln("par "+author+" "); frames.quiz_status.document.writeln("avec "+qmakeProgName+" "+qmakeVers+""); frames.quiz_status.document.writeln ("
"); } frames.quiz_status.document.writeln (" "); frames.quiz_status.document.close(); } function AskPrintQuiz() { if (window.confirm("Imprimer le QCM ?")) { window.print(); } } function PrintResults() { PrintResultOnTopFrame(); if (typeOfSub==4) { document.location = GetLinkFromMark(voto); window.status = ""; PrintCopyright(1); return; } frames.quiz_main.document.close(); frames.quiz_main.document.clear(); frames.quiz_main.document.open(); PrintOpenHTML(frames.quiz_main.document,"Résultat du test",0); frames.quiz_main.document.writeln("\n"); PrintJSResult(frames.quiz_main.document); frames.quiz_main.document.writeln(""); frames.quiz_main.document.writeln(bodyTagFrame1); if (valutaQuiz==1) { if (typeOfSub<=2) { PrintResultTopBar(frames.quiz_main.document); PrintResultsTable(frames.quiz_main.document); if (showReport==1) PrintReport(frames.quiz_main.document); } else if (typeOfSub==3) { frames.quiz_main.document.writeln("
"); frames.quiz_main.document.writeln (GetRemFromMark(voto)); frames.quiz_main.document.writeln("
"); } else { } } else { frames.quiz_main.document.writeln("
"); frames.quiz_main.document.writeln(finalMess); frames.quiz_main.document.writeln("
"); } PrintLinkBack(frames.quiz_main.document); frames.quiz_main.document.writeln (" "); frames.quiz_main.document.close(); window.status = ""; PrintCopyright(1); } function PrintResultOnTopFrame () { frames.quiz_top.document.clear(); frames.quiz_top.document.open(); PrintOpenHTML(frames.quiz_top.document,"Résultat du test",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln("
Résultat du test
"); frames.quiz_top.document.writeln (""); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); } function Timer() { var delta; if (ctmnow) { clearTimeout(ctmnow); ctmnow=0; } cnewdt = new Date(); time = Math.floor(cnewdt.getTime()/1000); delta = maxtime-(time-oldtime); if ((end_test==0)&&(oldtime!=time)) SetClock(getTimeString(delta)); if ((delta<=0)&&(end_test==0)) { window.alert("Temps expiré"); end_test=1; EndQuiz(); } else { ctmnow=setTimeout("Timer()",1000); } } function SetClock(timeStr) { frames.quiz_status.document.domanda.clock.value = timeStr; } function GetSoundName(n) { if ((valid[n]==-1)||(maxScore[n]==minvoto)) return errSound; if ((valid[n]==1)||(maxScore[n]==maxvoto)) return okSound; if ((valid[n]==3)||(valid[n]==5)) return warnSound; return warnSound; } function showTooltip (strTooltip) { frames.quiz_top.document.clear(); PrintOpenHTML(frames.quiz_top.document,"",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln ("
"); frames.quiz_top.document.writeln ("Indication:
"+strTooltip); frames.quiz_top.document.writeln ("
"); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); } function clearTooltip () { setTimeout(deleteTooltip,2000); } function deleteTooltip () { frames.quiz_top.document.clear(); PrintOpenHTML(frames.quiz_top.document,"",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln (" "); frames.quiz_top.document.close(); } function completeInitValuate() { if (valid[0]==0) { allAnsReport[0] = new frames.quiz_main.initValuate1(); doValuate(0,frames.quiz_main.document.domanda.score1,frames.quiz_main.document.domanda.risposta1); } CountAnswers(); } function ConvertPointToMark(n,points) { return 0; } function PrintResultsTable(doc) { var deltatime = time - oldtime; var percentage; doc.writeln("
"); doc.writeln("
"); doc.writeln(""); doc.writeln(""); doc.writeln(" "); if (identityName!="") { doc.writeln(""); doc.writeln(" "); } doc.writeln(""); doc.writeln(" "); doc.writeln(""); doc.writeln(" "); doc.writeln(""); doc.writeln(" "); if (maxtime>0) { doc.writeln(""); doc.writeln(" "); } doc.writeln(""); doc.writeln(" "); if (computeMarkErr==0) { doc.writeln(""); doc.writeln(" "); } else { doc.writeln(""); doc.writeln(" "); } doc.writeln("
"); doc.writeln("
"); doc.writeln(""+quizTitle+""); doc.writeln("
  Nombre de questions  "+(questions-invisibleQuests)+"
  Nom du candidat  "+identityName+"
  Bonnes réponses  "+nc+"
  Mauvaises réponses   "+ns+"
  Questions sans réponse  "+falseQuests+"
  Temps écoulé  "+getTimeString(deltatime)+"
  Date  "+DataToStringa()+"
  MARQUE  "+voto+"/"+maxvoto+"
  MARQUE  aucune marque
"); } function EndQuiz() { completeInitValuate(); FinalActions(); } function FinalActions() { voto = ComputeMarks(); PrintResults(); } function PrintTrueOrFalse(documento,flag) { if (flag==1) documento.write("V"); else if (flag==0) documento.write("F"); } function PrintATagLinkBack(documento) { documento.write(''); documento.write("CLOSE"); documento.writeln(''); } function init_valid() { for (var i=0;i'); documento.writeln (''); documento.writeln (""+title+""); documento.writeln (""); if (closeHead==1) documento.writeln (''); } //--> Browser with no frames-enabled option