")
for (i=0; i=3 && wapf.elements[ii].value!="") {
isnull=false;
if (wapf.elements[ii].value.toLowerCase()==questions[i].corrects.toLowerCase()) iscorrect=true;
else iswrong=true;
++selection;}
else if (wapf.elements[ii].checked) {
if (isnull) isnull=false;
if (questions[i].corrects[selection]=="1") iscorrect=(iswrong==false)?true:false;
else {
iswrong=true;
if (multi) errore(questions[i].qname,"La casella "+questions[i].response[selection]+" non andava selezionata.",questions[i].explan)
}} else {
if (questions[i].corrects[selection]=="1") {
iswrong=true;
if (multi) errore(questions[i].qname,"La casella "+questions[i].response[selection]+" andava selezionata.",questions[i].explan);
}}
++selection;
}}
if (multi==false && (isnull || iswrong)) {
var okresp, z;
if (type>=3) okresp=questions[i].corrects;
else {
for (z=0; z"+okresp+".",questions[i].explan);
}
if (isnull) evaluation+=questions[i].ifnull;
else if (iswrong) evaluation+=questions[i].ifwrong;
else if (iscorrect) evaluation+=questions[i].ifcorrect;
total+=evaluation;}
if (errori) {var voc=(errori==1)?"e":"i";winr.document.write(" In totale hai commesso "+errori+" error"+voc+". ");}
else winr.document.write("Complimenti, non hai commesso alcun errore.
Per passare alle domande più difficili clicca qui")
}
aknw="
"
function GetEval(total)
{
var minval, maxval, valstr, top, i;
minval=new Array(0,4,8,12,20);
maxval=new Array(4,8,12,20,21);
valstr=new Array("Insufficente","Sufficiente","Buono","Distinto","Ottimo!","non disponibile.");
top=minval.length;
for (i=0;i=minval[i] && total<=maxval[i]) break;
return(valstr[i]);}
// -->
Quiz su Il Signore degli Anelli a cura di Gil-Galad