function Question (qname,
type,
qstring,
response,
corrects,
explan,
ifcorrect,ifwrong,ifnull,
img)
{this.qname=qname;
this.type=type;
this.qstring=qstring;
this.response=response;
this.corrects=corrects;
this.explan=explan;
this.ifcorrect=ifcorrect;
this.ifwrong=ifwrong;
this.ifnull=ifnull;
this.img=img;
}

resp=""
corr="RCA"
quest001 = new Question(
"Domanda 1",
4,
"<font size=3>Qual'&egrave; stata la sua prima casa discografica?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Satyricon"
quest002 = new Question(
"Domanda 2",
4,
"<font size=3>Il titolo del film dove Renato recit&ograve; sotto la regia del grande Federico Fellini?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Collettoni e Collettine"
quest003 = new Question(
"Domanda 3",
4,
"<font size=3>Nel 1966 Renato partecipa nel corpo di ballo ad uno spettacolo di Rita Pavone. Come s'intitolava la trasmissione? </font>&nbsp;",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Tregua"
quest004 = new Question(
"Domanda 4",
4,
"<font size=3>Renato Zero pubblica un album interamente dedicato a suo padre. Mi sai dire il titolo dell'album?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Atomico Pathos"
quest005 = new Question(
"Domanda 5",
4,
"<p><font size=3>&quot;..fiori nuovi, nella mia serra. Un'alba nuova su questa terra..&quot; A quale canzone appartengono queste frasi?</font></p>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Trapezio"
quest006 = new Question(
"Domanda 6",
4,
"<p><font color=\"#ff0000\" size=3>&quot;...Per attimi rimango sospeso nel vuoto... giuro, qualche volta mi sento perduto. Io mi fido solo del mio strano istinto, non mi ha mai tradito... non mi sento vinto.&quot; </font><font size=3>Con queste parole, nel 1976, Renato diede vita al suo terzo album.. Ti ricordi il titolo? </font></p><br>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Renato Serio"
quest007 = new Question(
"Domanda 7",
4,
"<font size=3>Nell'utlimo decennio Renato utilizza, per la realizzazione dei suoi brani, &nbsp;musicisti orchestrali. Ti ricordi il nome del direttore d'orchestra?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Spiagge"
quest008 = new Question(
"Domanda 8",
4,
"<font size=3>Nel 1983 Renato interpreta una canzone che diventer&agrave; &nbsp;la colonna sonora di quella calda ed indimenticabile estate.. Mi sa dire il titolo di quella canzone? </font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Quando non sei più di nessuno"
quest009 = new Question(
"Domanda 9",
4,
"<p><font color=\"#ff0000\" size=3>&quot;..Nessuno pu&ograve; possedere nessuno. Niente pu&ograve; cambiare niente se non vuoi. Chi crede di poterti piegare, assoggettare o ridurti al vile silenzio, s'illude. Ci sono un paio d'ali ed un paracadute di scorta nascosti dentro di noi. E quando..., il male &egrave; troppo forte e l'aria si fa talmente irrespirabile, &egrave; quello il momento di saltare. Allora solo allora puoi veramente dirti libero...&quot; &nbsp;</font></p><p><font size=3>Queste parole accompagnano la prefazione di un suo album. Quale? </font></p><p><br></p>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="1978"
quest010 = new Question(
"Domanda 10",
5,
"<p><font size=3>&quot;...E c'eri anche tu, in quelle folli notti, sotto il tendone blu... &quot; Cos&igrave; inizia la canzone &quot;Giorni&quot; che Renato cant&ograve; nel 1984. Si riferiva a &quot;Zerolandia&quot; quella straordinaria realt&agrave;. Tendone itinerante in cui affluivano ogni sera centinaia di &quot;sorcini&quot; ma che ebbe poi cos&igrave; poca fortuna.. Ti ricordi in quale anno &egrave; nato &quot;Zerolandia&quot;?</font></p>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Zerofavola 2"
quest011 = new Question(
"Domanda 11",
3,
"<font size=3>Quale copilation della BMG &egrave; stata tolta dal commericio negli anni 90?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="L'imperfetto"
quest012 = new Question(
"Domanda 12",
4,
"<font size=3>Phil Palmer, noto chitarrista, partecipa alla realizzazione di diversi album di Renato sia come musicista che come produttore. Ti ricordi quale fu il primo album in cui Phil Palmer partecip&ograve;?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Gianni Boncompagni"
quest013 = new Question(
"Domanda 13",
4,
"<font size=3>Chi fu ad attribuire il nome d'arte di Renato &quot;Zero&quot;? (nome/cognome)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Cicci Marengo"
quest014 = new Question(
"Domanda 14",
3,
"<font size=3>Come ben noto Renato, oltre che cantautore, si occup&ograve; anche della realizzazione dei suoi abiti di scena. Quale era il nome del sarto, recentemente scomparso, che lo aiut&ograve; nel confezionare tali abiti? (nome/cognome)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Fermoposta Zerolandia"
quest015 = new Question(
"Domanda 15",
4,
"<font size=3>Nel 1982 Renato, dai microfoni di Rai2, conduce una trasmissione radiofonica. Ti ricordi il nome della trasmissione? (due parole)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="1982"
quest016 = new Question(
"Domanda 16",
5,
"<font size=3>Renato &egrave; ospite fisso nella trasmissione abbinata alla Lotteria Italia &quot;Fantastico&quot; condotta da Raffaella Carr&agrave; e Corrado. Ti ricordi in quale anno?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Gondola d'oro"
quest017 = new Question(
"Domanda 17",
4,
"<font size=3>Nel 79 Renato scala tutte le classifiche di vendita con &quot;Erozero&quot;, album che gli far&agrave; anche vincere un prestigioso premio a Venezia. Ti ricordi quale? (due parole)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="passato nessuno"
quest018 = new Question(
"Domanda 18",
4,
"<font size=3>Il futuro &egrave; deluso e va via! Del .............., gli affiora l'idea Mi commuovo, se penso che, solo ieri eri qui con me insieme nel bene, nel male. Oggi, guarda il futuro cos'&egrave; pi&ugrave; ............. che lotta, perch&eacute;, perch&eacute; tu ti accontenterai, di quel poco che &egrave; poco ormai perch&eacute; regalarti cos&igrave;.</font><br><font size=3>Quali sono le parole mancanti?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="spoglierò pretesto"
quest019 = new Question(
"Domanda 19",
3,
"<font size=3>Io che incontro facilmente. Pregiudizi, certo, non ne ho.</font><br><font size=3>Io, che ti incoragger&ograve;. E piano io ti ............, di complessi e di paure. Io, facile son io, facile davvero!</font><br><font size=3>Ogni ............. lo user&ograve;, chi mi dir&agrave; di no!</font><br><font size=3>Quali parole mancano?</font><br><br>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="09112001"
quest020 = new Question(
"Domanda 20",
5,
"<font size=3>Ti ricordi la data in cui &egrave; uscito l'album di Renato &quot;La Curva dell'Angelo&quot;? (ggmmaaaa)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="2000"
quest021 = new Question(
"Domanda 21",
5,
"<font size=3>Renato Zero torna in televisione propondendo &quot;Tutti gli Zeri del Mondo&quot; uno spettacolo da lui ideato in quattro puntate. Ti ricordi in quale anno?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Orazio"
quest022 = new Question(
"Domanda 22",
4,
"<font size=3>Ti ricordi il nome del &quot;mitico&quot; furgone, compagno d'avventure, che Renato utilizz&ograve; e guid&ograve; personalmente in gir&ograve; per l'Italia agli inizi della sua brillante carriera?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="dialogare sapore"
quest023 = new Question(
"Domanda 23",
4,
"<font size=3>Io mi sono illuso su di te che crescevi e dividevi insieme a me questo .............. e intendersi tra noi</font><br><font size=3>al di l&agrave; delle parole il senso degli anni tuoi. Ma vuoi tutto subito e non sai il valore delle cose che gi&agrave; hai</font><br><font size=3>il ................ di vittoria che cos'&egrave; se non vuoi pi&ugrave; lottare, che conquista &egrave;.</font><br><font size=3>Quali parole mancano?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="scordare sorpassa"
quest024 = new Question(
"Domanda 24",
4,
"<font size=3>Nello sguardo del campione, non pi&ugrave; sogni ne avvenire.</font><br><font size=3>Solo voglia di .............., la sconfitta, che sapore ha. Il mestiere tuo &egrave; rischiare. Tutto, prendere o lasciare.</font><br><font size=3>E vai. E vai. ................ tutti, e vai. Il traguardo &egrave; l&agrave; ce la farai? C'&egrave; la trappola!!!</font><br><font size=3>Quali parole mancano?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Zeropera"
quest025 = new Question(
"Domanda 25",
4,
"<font size=3>Nel 1993 Renato parte dal Reggio di Parma per una prestigiosa tournè che toccherà tutte le principali città d'Italia. Saranno i teatri questa volta ad ospitarlo dove si avvalerà anche di una indimenticabile orchestra sinfonica. Ti ricordi il nome di quel tour?",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="balcone convincere"
quest026 = new Question(
"Domanda 26",
4,
"<font size=3>Da un ............... improbabile vedo gli alberi crescere e mi sembra che, anche dentro me tutto sia migliore di com'&egrave; non lasciarti ................... che vinca sempre il pi&ugrave; abile la stupidit&agrave; divora, facce e nomi senza storia.</font><br><font size=3>Inserisci le parole che mancano</font><br>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="1993"
quest027 = new Question(
"Domanda 27",
5,
"<font size=3>In quale anno nasce il progetto Fonopoli?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Icaro"
quest028 = new Question(
"Domanda 28",
4,
"<font size=3>... E' Natale a Zerolandia... E' Natale anche per noi... Per noi diversi... Per noi che siamo tanti... Per noi, che guardiamo avanti... gi&agrave; avanti. Per noi, che forse sembriamo strani ma che in fondo siamo cos&igrave; umani... gi&agrave;... E' Natale malgrado l'apparenza. Per noi che vogliamo vivere... Per noi che abbiamo pazienza. Per noi che lavoriamo in segreto, che ci diamo da fare affinch&eacute; questa vita incazzata possa cambiare umore e diventare un'altra occasione, un altro incontro... E noi ci siamo tutti e siamo davvero pi&ugrave; veri di ieri... Prestateci un sogno, lasciateci ancora tentare... Perch&eacute; questa notte sia eterna, perch&eacute; sia una notte d'amore...</font><br><font size=3>Con queste parole inizia un lavoro di Renato. Ti ricordi quale album era?</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Caravan Zero"
quest029 = new Question(
"Domanda 29",
4,
"<font size=3>Siamo pronti per riscrivere la nostra storia? Per un confronto, onesto e obiettivo con il nostro passato?... Con le nostre antiche promesse. E con un futuro che non pu&ograve; pi&ugrave; attendere. Chi siamo? Come potremo saperlo se non vivendo. Restando fianco a fianco, guardandoci negli occhi, e raccontandoci con serenit&agrave; i nostri difetti, le nostre anomalie, i nostri bisogni. Per essere cos&igrave; sicuri che stiamo crescendo, maturando. Che ogni momento, anche il pi&ugrave; fugace &egrave; una fetta di vita che ci appartiene e che dobbiamo difendere. Un &quot;Identikit&quot; non &egrave; solo possibile ma, indispensabile, per non confonderci. Isolarci. Perderci. Sono sempre Zero per la gioia di riinventarmi ancora insieme a te, rivivendo attimi che mi aiutano a capire che tu sei tu, e sei... meravigliosamente qui!</font><br><font size=3>Queste frasi sono contenute in un album che precede un tour, quale? (due parole)</font>",
resp,
corr,
"",
1,
0,
0,
"");

resp=""
corr="Zerolandia"
quest030 = new Question(
"Domanda 30",
4,
"<font size=3>Alla fine degli anni 70 Renato decide di costituire una casa discografica propria. Sai qual'&egrave; il suo nome? </font>",
resp,
corr,
"",
1,
0,
0,
"");

questions = new Array (
quest001,quest002,quest003,quest004,quest005,quest006,quest007,quest008,quest009,quest010,quest011,quest012,quest013,quest014,quest015,quest016,quest017,quest018,quest019,quest020,quest021,quest022,quest023,quest024,quest025,quest026,quest027,quest028,quest029,quest030)

function doQuestion(quest)
{
var numdo;
var numord=eval(quest+1);
var i=-1, ii, type, myname, gadget;
type=questions[quest].type;
numdo=type>=3?1:questions[quest].response.length;

document.write("\n")
document.write("<div id=\"q")
document.write(numord)
document.write("\" style=\"display:none\">\n")
document.write("  <p>&nbsp;</p><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n")
document.write("    <tr>\n")
document.write("      <td align=\"left\" valign=\"top\">&nbsp;</td>\n")
document.write("      <td width=\"50%\">&nbsp;</td>\n")
document.write("      <td>&nbsp;</td>\n")
document.write("    </tr>\n")
document.write("    <tr> \n")
document.write("      <td align=\"left\" valign=\"top\">&nbsp;</td>\n")
document.write("      <td width=\"50%\">\n")
document.write("        <table width=\"470\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n")
document.write("          <tr> \n")
document.write("            <td align=\"left\" valign=\"bottom\"> \n")
document.write("              <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n")
document.write("                <tr> \n")
document.write("                  <td><img src=\"m_table_up_sx.gif\" width=\"60\" height=\"22\"></td>\n")
document.write("                  <td background=\"m_table_up_bord.gif\" width=\"100%\"><img src=\"m_table_up_bord.gif\" width=\"1\" height=\"22\"></td>\n")
document.write("                  <td><img src=\"m_table_up_dx.gif\" width=\"26\" height=\"22\"></td>\n")
document.write("                </tr>\n")
document.write("              </table>\n")
document.write("            </td>\n")
document.write("          </tr>\n")
document.write("          <tr> \n")
document.write("            <td> \n")
document.write("              <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\">\n")
document.write("                <tr> \n")
document.write("                  <td background=\"m_table_sx_bord.gif\" align=\"right\" valign=\"top\"> \n")
document.write("                    <table width=\"42\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"37\" background=\"m_table_num.gif\">\n")
document.write("                      <tr> \n")
document.write("                        <td height=\"37\" width=\"32\" align=\"center\"> \n")
document.write("                          <font face=\"Arial, Helvetica, sans-serif\"><b><font size=\"5\" color=\"#FFFFFF\">")
document.write(numord)
document.write(" \n")
document.write("                            </font></b></font>\n")
document.write("                        </td>\n")
document.write("                      </tr>\n")
document.write("                    </table>\n")
document.write("                  </td>\n")
document.write("                  <td width=\"100%\" bgcolor=\"F0F9FD\" align=\"left\" valign=\"top\">\n")
document.write("                    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n")
document.write("                      <tr>\n")
document.write("                        <td colspan=\"2\">\n")
document.write("                          <table>\n")
document.write("                            ")
if (questions[quest].img!="") {
document.write("\n")
document.write("                            <td width=1>\n")
document.write("                              <img border=\"0\" src=\"")
document.write(questions[quest].img)
document.write("\">\n")
document.write("                            </td>\n")
document.write("                            ")
}
document.write("\n")
document.write("                            <td class=question valign=\"top\">")
document.writeln(questions[quest].qstring)
document.write("</td>\n")
document.write("                          </table>\n")
document.write("                        </td>\n")
document.write("                      </tr>\n")
document.write("                      <tr height=10>\n")
document.write("                        <td colspan=\"2\">&nbsp;</td>\n")
document.write("                      </tr>\n")
document.write("                      ")
for (i=0; i<numdo; i++) {
myname=questions[quest].qname;
gadget="radio";
if (type>=3) gadget="text";
else if (type==1) {
myname+="_"+(i<9?"0":"")+(i+1);
gadget="checkbox";}
document.write("\n")
document.write("                      <tr>\n")
document.write("                        <td width=\"1%\" valign=\"top\">")
document.write(" <input type="+gadget+" name=\""+myname);
if (type<3) document.write("\" value=\""+i+"\">\n")
else document.write("\" class=\"input\" value=\"\">\n")
document.write("</td>\n")
document.write("                        <td width=\"99%\" class=answer align=\"left\">")
if (type<3) document.write(questions[quest].response[i]);
document.write("</td>\n")
document.write("                      </tr>\n")
document.write("                      ")
}
document.write("\n")
document.write("                    </table>\n")
document.write("                   </td>\n")
document.write("                  <td background=\"m_table_dx_bord.gif\"><img src=\"m_table_dx_bord.gif\" width=\"26\" height=\"1\"></td>\n")
document.write("                </tr>\n")
document.write("              </table>\n")
document.write("            </td>\n")
document.write("          </tr>\n")
document.write("          <tr> \n")
document.write("            <td> \n")
document.write("              <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n")
document.write("                <tr> \n")
document.write("                  <td><img src=\"m_table_dn_sx.gif\" width=\"42\" height=\"23\"></td>\n")
document.write("                  <td background=\"m_table_dn_bord.gif\" width=\"100%\"><img src=\"m_table_dn_bord.gif\" width=\"1\" height=\"23\"></td>\n")
document.write("                  <td><img src=\"m_table_dn_dx.gif\" width=\"26\" height=\"23\"></td>\n")
document.write("                </tr>\n")
document.write("              </table>\n")
document.write("            </td>\n")
document.write("          </tr>\n")
document.write("        </table>\n")
document.write("      </td>\n")
document.write("      <td>&nbsp;</td>\n")
document.write("    </tr>\n")
document.write("  </table>\n")
document.write("</div>\n")
document.write("<div id=\"q")
document.write(numord)
document.write("a\" style=\"display:none\">\n")
document.write("  <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n")
document.write("    <tr>\n")
document.write("      <td align=\"right\" width=\"50%\">\n")
document.write("        ")
if (quest>0) {
}
document.write("\n")
document.write("      </td>\n")
document.write("      <td align=\"left\" width=\"50%\">\n")
document.write("        ")
if (quest<questions.length-1) {
document.write("\n")
document.write("        <a href=\"javascript:void(0)\" ")
document.write(" onClick='")
if (type>3) document.write("if (doCheck("+quest+")) ")
document.write("myshow("+(quest+2)+")' ")
document.write(" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2")
document.write(numord)
document.write("','','m_next_button2.jpg',1)\"><img src=\"m_next_button.jpg\" width=\"74\" height=\"40\" border=\"0\" name=\"Image2")
document.write(numord)
document.write("\" alt=\"Avanti\"></a>\n")
document.write("        ")
}
document.write("\n")
document.write("        ")
if (quest==questions.length-1) {
document.write("\n")
document.write("        <a href=\"javascript:void(0)\" ")
document.write(" onClick='")
if (type>3) document.write("if (doCheck("+quest+")) ")
document.write("correct(document.WapForm)'")
document.write(" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image3','','m_eval_button2.gif',1)\"><img src=\"m_eval_button.gif\" width=\"75\" height=\"39\" border=\"0\" name=\"Image3\" alt=\"Valuta\"></a>\n")
document.write("        ")
}
document.write("      \n")
document.write("      </td>\n")
document.write("    </tr>\n")
document.write("  </table>\n")
document.write("</div>\n")
}
function doTest() {
var count, i, newq;
if (navigator.appName!="Microsoft Internet Explorer")
{
alert('Il presente questionario funziona\nsolo con Microsoft Internet Explorer');
return;
}
questions.sort(myrandom);
newq=questions.slice(0,10);questions=newq;
for (i=0; i<questions.length; i++) {
questions[i].qname="Domanda "+(i+1);}
count=questions.length;
for (i=0; i<count; i++) doQuestion(i);
}
function fill(s,l){
s=s+""
for (y=1;y<=l;y++)
if (s.length>=l) break; else s="0"+s;
return s
}
function CheckQName(wapf,ii,i,multi,selection){
var len;
if (!multi) return(wapf.elements[ii].name==questions[i].qname);
len=questions[i].qname.length;
if (wapf.elements[ii].name.substring(0,len)!=questions[i].qname) return false;
if (wapf.elements[ii].name.substring(len,len+1)!="_") return false;
if (eval(wapf.elements[ii].name.substring(len+1,len+3))==(selection+1)) return true;
return false;
}
function errore(uno)
{
if (!errori) winr.document.write("<H3>Hai commesso i seguenti errori:</H3>");
++errori;
winr.document.write("<p><b>"+uno+"</b><br>La risposta data non è corretta.</p>");
}
function correct(wapf)
{
var i, ii, tmp, selection, multi, type, isnull, iswrong, iscorrect, evaluation=0, total=0, udat;
errori=0;
udat=new Array();
for (i=0, ii=0; i<wapf.elements.length; i++)
{tmp=wapf.elements[i];
if (tmp.name.substring(0,13)=="Quiz.UserData")
udat[ii++]=tmp.name.substring(14,tmp.name.length)+": <i>"+tmp.value+"</i><br>";}
winr=window.open('','wapres', 'titlebar=1,location=0,directories=0,menubar=1,toolbar=0,scrollbars=1,resizable=1,status=1')
winr.document.write("<html><head><title>ZERORisultati</title><BASE target='_blank'></head><body bgcolor='#ffffff' background='sfondo.jpg'><font color='#FFFFFF' face='Verdana, Arial><table border=0 cellpadding=0 cellspacing=0 width='100%' bgcolor='#ffffff' background='sfondo.jpg'><tr><td width='100%'><font face='Verdana, Arial' size=5 color='#9395EC'><p align='center'><b>&nbsp;ZERORisultati</b></font></td></tr></table>")
now= new Date()
winr.document.write("<small><p>"+fill(now.getDate(),2)+"/"+fill((now.getMonth()+1),2)+"/"+now.getYear()+"&nbsp;&nbsp;"+fill(now.getHours(),2)+":"+fill(now.getMinutes(),2)+"</p>")
if (udat.length>0) {
winr.document.write("<b>Dati utente</b><br>\n");
for (i=0; i<udat.length; i++) winr.document.write(udat[i]);}

for (i=0; i<questions.length; i++) {
type=questions[i].type;
if (type==1) multi=1;
else multi=0;
isnull=true;
iscorrect=false;iswrong=false;
selection=0;
evaluation=0;
for (ii=0; ii<wapf.elements.length; ii++) {
if (CheckQName(wapf,ii,i,multi,selection)) {
if (type>=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);
}} else {
if (questions[i].corrects[selection]=="1") {
iswrong=true;
if (multi) errore(questions[i].qname);
}}
++selection;
}}
if (multi==false && (isnull || iswrong)) {
var okresp, z;
if (type>=3) okresp=questions[i].corrects;
else {
for (z=0; z<questions[i].corrects.length; z++) {
if (questions[i].corrects[z]==1) {
okresp=questions[i].response[z];
break;
}}}
errore(questions[i].qname);
}
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("<br><b>In totale hai commesso "+errori+" error"+voc+".</b>");}
else winr.document.write("<h3>Complimenti, non hai commesso alcun errore!</h3>")

winr.document.write("<br><b>Valutazione:</b><br>"+GetEval(total)+"<br>");
winr.document.write("</small><hr noshade><center><form>")
printest=(((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)>='4')) || (navigator.appVersion.lastIndexOf('MSIE 5') !=-1))? 'print()': 'alert("Questo pulsante funziona soltanto con Netscape Navigator 4 o Microsoft Internet Explorer 5 (o versioni successive). Per stampare con gli altri browser, seleziona il comando Stampa nel menu File.")'
winr.document.write("<input type='button' value='Stampa...' onClick='"+printest+"'>&nbsp;&nbsp;&nbsp;&nbsp;")
winr.document.write("<input type='button' value='Chiudi questa finestra' onClick='window.close()'></form></center>")
winr.document.write(aknw)
winr.document.close()
if (navigator.appVersion.lastIndexOf('MSIE 3') == -1) nomsie3=true
else nomsie3=false
if (nomsie3) winr.focus()
}
aknw="<br><p align='center'> <small><small>Torna alla <a title='Premi qui' href='http://zerocomerenato.altervista.org/zeroquiz.htm' target = '_blank'>pagina dei Quiz</a></small></small></p>"
function myrandom(a,b)
{
var rc;
do {rc=Math.floor(Math.random()*3)-1;} while (rc==2);
return(rc);
}
function GetEval(total)
{
var minval, maxval, valstr, top, i;
minval=new Array(0,2,6,7,10);
maxval=new Array(2,5,6,9,10);
valstr=new Array("<p align='center'><font color='#FF00FF' face=\"Lucida Casual\" size=7>ZeroSCARSISSIMO!! <p align='center'></font><br><font face=\"Lucida Casual\" size=7>Torna a studiare!!</font>","<p align='center'><font color='#F96885' face=\"Lucida Casual\" size=6>ZeroSCARSO.. </font><br><p align='center'><font face=\"Lucida Casual\" size=6>Ti avevo avvertito che era molto difficile eh? Non ti preoccupare non gli dir&ograve; niente a Renato..</font>","<p align='center'><font color='#F45357' face=\"Lucida Casual\" size=6>ZeroSUFFICIENTE.. </font><br><p align='center'><font face=\"Lucida Casual\" size=6>Sei stato abbastanza bravo ma da te mi sarei aspettato di pi&ugrave;!!</font>","<p align='center'><font color='#F3474B' face=\"Lucida Casual\" size=6>ZeroPREPARARTO.</font><br><p align='center'><font face=\"Lucida Casual\" size=6>&nbsp;</font><br><p align='center'><font face=\"Lucida Casual\" size=6>Complimenti sei stato all'altezza della situazione. Renato sar&agrave; fiero di te.. ed anch'io!!</font>","<p align='center'><font color='#F1272D' face=\"Lucida Casual\" size=7>GRANDEEEEEEEEEEEEEEEEEEEEEE........</font>","non disponibile.");
top=minval.length;
for (i=0;i<top;i++) if (total>=minval[i] && total<=maxval[i]) break;
return(valstr[i]);}
function doCheck(quest)
{
var i, wapf=document.WapForm;
for (i=0; i<wapf.elements.length; i++) {
if (CheckQName(wapf,i,quest,0,0)) {
return (InputCheck(wapf.elements[i],questions[quest].type-4));}}}
function InputCheck(elem,format)
{
var mes, oks, checkOK, checkStr, nam, allValid;
checkStr=elem.value;
nam=elem.name;
mes=new Array("Inserire solo lettere e spazio nel campo ","Inserire solo cifre nel campo ","Inserire un numero valido nel campo ");
oks=new Array("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ' \t\r\n\f","0123456789-.","0123456789-,.");
checkOK=oks[format]
allValid=true
for (i = 0;  i < checkStr.length;  i++)
{ ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{allValid = false;break;}}
if (!allValid)
{alert(mes[format]+nam);elem.focus();return (false);}
return (true);
}
var recent, recent2, recdone=false;
function myshow(count)
{
var id, id2;
id=eval("q"+count);
id2=eval("q"+count+"a");
if (recdone==false) {
recent=wq_user;
recent2="";
recdone=true;}
recent.style.display="none";
if (recent2!="") recent2.style.display="none";
id.style.display="";
id2.style.display="";
if (questions[count-1].type>2) document.WapForm.elements[questions[count-1].qname].focus();
recent=id;recent2=id2;}
