"; var noBorderBodyTagFrame2="
"; var soundEnable = 0; var okSound=''; var errSound=''; var warnSound=''; var valid = new init_array(14); var nScore = new init_array(14); var maxScore = new init_array(14); var questions=14; var qstHead = new init_array(14); var pageWidth = 80; var groups = new init_array(0,0,0,0,0,0,0,0,0,0,0,0,0,0); var quizTitle="I lipidi"; 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 = 1; 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 = 1; var n_repeat = 0; var reviewQuiz = 0; var finalMess = ''; var printCpRg=1; var filename = 'lipidi'; var topChartFile=''; var pesi = new init_array(14); var allAnsReport = new init_array(14); var author = 'vanna vannucchi'; var mediaDir = 'media'; var questSlide = 0; var lockRightAns = 0; var resultBoxKind = 0; var reportNotation = 2; var remRepAlways = 0; var confirmEachQst = 1; var typeOfSub = 0; var isResultsPageDark = 0 var ordineDomande = new init_array(0,7,2,11,8,6,4,12,10,9,1,5,13,3); var typeOfQuest = new init_array(1,5,4,1,5,5,4,1,1,1,1,4,5,4); var omitPoint = new init_array(0,0,0,0,0,0,0,0,0,0,0,0,0,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 = "Domenica"; break; case 1: nome = "Lunedi'"; break; case 2: nome = "Martedi'"; break; case 3: nome = "Mercoledi'"; break; case 4: nome = "Giovedi'"; break; case 5: nome = "Venerdi'"; break; case 6: nome = "Sabato"; break; } strData = nome+", "+obj.getDate(); mese = obj.getMonth(); switch(mese) { case 0: nome = "Gennaio"; break; case 1: nome = "Febbraio"; break; case 2: nome = "Marzo"; break; case 3: nome = "Aprile"; break; case 4: nome = "Maggio"; break; case 5: nome = "Giugno"; break; case 6: nome = "Luglio"; break; case 7: nome = "Agosto"; break; case 8: nome = "Settembre"; break; case 9: nome = "Ottobre"; break; case 10: nome = "Novembre"; break; case 11: nome = "Dicembre"; } 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+" esatte e "; if (nc==1) msg+=" una sola esatta e "; if (nc==0) msg+=" nessuna esatta e "; if (ns>1) msg+=ns+" errate."; if (ns==1) msg+=" una sola errata."; if (ns==0) msg+=" nessuna errata."; msg+=" Devi ancora rispondere a "; if (nr>1) msg+=nr+" domande."; else msg+=" una domanda."; 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("Risposta corretta
"); else if (valid[i]==-1) documento.writeln("Risposta errata
"); else if (valid[i]==2) documento.writeln("Domanda non valutata
"); else if (valid[i]==3) { if (typeOfQuest[i]==2) documento.writeln("Affermazioni corrette "+nScore[i]+" su "+maxScore[i]+"
"); else if (typeOfQuest[i]==4) documento.writeln("Parole corrette "+nScore[i]+" su "+maxScore[i]+"
"); else if (typeOfQuest[i]==5) documento.writeln("Associazioni "+nScore[i]+" su "+maxScore[i]+"
"); } else if (valid[i]==5) { documento.write("punti "+nScore[i]); if (groups[i]==0) documento.writeln(" (VOTO "+maxScore[i]+")
"); else if (groups[i]==1) documento.writeln("
Punteggio cumulato con la domanda precedente
"); else if (groups[i]==2) documento.writeln("
VOTO (ottenuto dal punteggio cumulato delle domante successive): "+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("
Risposta corretta
Risposta errata "); 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("
Risultati del quiz\n"); doc.writeln("STAMPA | \n"); if (man_repeat) doc.writeln("RIPETI | \n"); if (topChartFile!='') doc.writeln("Classifica | \n"); doc.writeln("FINE\n"); doc.writeln("

\n"); } } function PrintLinkBack(documento) { documento.writeln("
\n"); documento.writeln(""); documento.writeln("
"); PrintATagLinkBack(documento); documento.writeln("\n"); documento.writeln("STAMPA | \n"); if (man_repeat) documento.writeln("RIPETI | \n"); if (topChartFile!='') documento.writeln("Classifica | \n"); documento.writeln("FINE\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 = "Risposta selezionata"; } else { if (valid[n]==1) { if (PrintAnswer.arguments.length>1) textField.value = "Risposta corretta"; msg = "Bravo ! Risposta esatta"; } else { msg = "Errato! La risposta corretta era " + 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("Hai risposto a tutte le domande"); EndQuiz(); } return end_test; } function PrintOpenAnswer(n,outMsg) { outMsg.value = "Risposta completata"; end_test = CountAnswers(); PrintStatusBar(); PrintBottomFrame(); if (end_test==1) { window.status = ""; window.alert("Hai risposto a tutte le domande"); EndQuiz(); } return end_test; } function PrintBooleanAnswer(n,textField) { var msg,msg2,msgFormat; var explan= new initOneElementVector(); explan[0] = ""; if (silent==0) { msg = "Risposte corrette " + 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+"
esatte : "+nc+"errate : "+ns+"rimanenti : "+nr+"da rispondere :"+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("
Attenzione!
"); frames.quiz_main.document.writeln ("La parola chiave inserita NON è corretta
"); frames.quiz_main.document.writeln ("Non è possibile la continuazione del quiz
"); frames.quiz_main.document.writeln ("Per informazioni rivolgersi al curatore del quiz
"); 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("


Attenzione!
"); frames.quiz_main.document.writeln ("Ripetizione del quiz non abilitata
"); frames.quiz_main.document.writeln ("Non è possibile il suo svolgimento
"); frames.quiz_main.document.writeln ("Per informazioni rivolgersi al curatore del quiz
"); 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("Questo quiz è stato creato "); if (author!='') frames.quiz_status.document.writeln("da "+author+" "); frames.quiz_status.document.writeln("con "+qmakeProgName+" "+qmakeVers+""); frames.quiz_status.document.writeln ("
"); } frames.quiz_status.document.writeln ("
"); frames.quiz_status.document.close(); } function AskPrintQuiz() { if (window.confirm("Stampo il quiz ?")) { 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,"Risultati del quiz",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,"Risultati del quiz",1); frames.quiz_top.document.writeln (bodyTagFrame2); frames.quiz_top.document.writeln("
Risultati del quiz
"); 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("Il tempo a tua disposizione e' scaduto"); 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 ("Suggerimento:
"+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); } if (valid[1]==0) { allAnsReport[1] = new frames.quiz_main.initValuate2(); doValuate(1,frames.quiz_main.document.domanda.score2,frames.quiz_main.document.domanda.risposta2); } if (valid[2]==0) { allAnsReport[2] = new frames.quiz_main.initValuate3(); doValuate(2,frames.quiz_main.document.domanda.score3,frames.quiz_main.document.domanda.risposta3); } if (valid[3]==0) { allAnsReport[3] = new frames.quiz_main.initValuate4(); doValuate(3,frames.quiz_main.document.domanda.score4,frames.quiz_main.document.domanda.risposta4); } if (valid[4]==0) { allAnsReport[4] = new frames.quiz_main.initValuate5(); doValuate(4,frames.quiz_main.document.domanda.score5,frames.quiz_main.document.domanda.risposta5); } if (valid[5]==0) { allAnsReport[5] = new frames.quiz_main.initValuate6(); doValuate(5,frames.quiz_main.document.domanda.score6,frames.quiz_main.document.domanda.risposta6); } if (valid[6]==0) { allAnsReport[6] = new frames.quiz_main.initValuate7(); doValuate(6,frames.quiz_main.document.domanda.score7,frames.quiz_main.document.domanda.risposta7); } if (valid[7]==0) { allAnsReport[7] = new frames.quiz_main.initValuate8(); doValuate(7,frames.quiz_main.document.domanda.score8,frames.quiz_main.document.domanda.risposta8); } if (valid[8]==0) { allAnsReport[8] = new frames.quiz_main.initValuate9(); doValuate(8,frames.quiz_main.document.domanda.score9,frames.quiz_main.document.domanda.risposta9); } if (valid[9]==0) { allAnsReport[9] = new frames.quiz_main.initValuate10(); doValuate(9,frames.quiz_main.document.domanda.score10,frames.quiz_main.document.domanda.risposta10); } if (valid[10]==0) { allAnsReport[10] = new frames.quiz_main.initValuate11(); doValuate(10,frames.quiz_main.document.domanda.score11,frames.quiz_main.document.domanda.risposta11); } if (valid[11]==0) { allAnsReport[11] = new frames.quiz_main.initValuate12(); doValuate(11,frames.quiz_main.document.domanda.score12,frames.quiz_main.document.domanda.risposta12); } if (valid[12]==0) { allAnsReport[12] = new frames.quiz_main.initValuate13(); doValuate(12,frames.quiz_main.document.domanda.score13,frames.quiz_main.document.domanda.risposta13); } if (valid[13]==0) { allAnsReport[13] = new frames.quiz_main.initValuate14(); doValuate(13,frames.quiz_main.document.domanda.score14,frames.quiz_main.document.domanda.risposta14); } 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("
  Numero di domande  "+(questions-invisibleQuests)+"
  Nome esaminando  "+identityName+"
  Risposte corrette  "+nc+"
  Risposte errate  "+ns+"
  Domande non valutate  "+falseQuests+"
  Tempo impiegato  "+getTimeString(deltatime)+"
  Data  "+DataToStringa()+"
  VOTO  "+voto+"/"+maxvoto+"
  VOTO  Senza voto
"); } 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) { return; } 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