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=new Array("Vero","Falso")
corr=new Array("1","0")
quest001 = new Question(
"Domanda 1",
0,
"Microsoft Word è il programma di elaborazione testi più diffuso",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Con un clic pulsante apri &nbsp;presente nella barra degli strumenti","selezionando &nbsp;apri dalla voce menu File","Apri dalla barra del titolo")
corr=new Array("1","1","0")
quest002 = new Question(
"Domanda 2",
1,
"Per aprire un documento Word si possono eseguire le operazioni",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest003 = new Question(
"Domanda 3",
0,
"Per salvare il documento la prima volta bisogna andare sul menu file e quindi selezionare &quot;Salva&quot;",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest004 = new Question(
"Domanda 4",
0,
"Il programma ogni volta assegna automaticamente &nbsp;il nome &quot;finestra 1&quot; ad ogni nuovo documento",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("1","0")
quest005 = new Question(
"Domanda 5",
0,
"In caso di difficoltà si può ricorrere alla funzione help premendo F1",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("1","0")
quest006 = new Question(
"Domanda 6",
0,
"Word consente di modificare il sistema di visualizzazione del documento.",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest007 = new Question(
"Domanda 7",
0,
"Le barre degli strumenti &nbsp;non si &nbsp;possono personalizzare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest008 = new Question(
"Domanda 8",
0,
"Un documento &nbsp;generato da word &nbsp;non si puo visualizzare in Internet.",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Barra degli strumenti &quot;freccina a sinistra &nbsp;&quot;","Barra dei menù /Modifica","Barra dei menù / strumenti")
corr=new Array("1","1","0")
quest009 = new Question(
"Domanda 9",
1,
"Word permette di modificare il documento annullando l'ultima operazione compiuta cliccando sui seguenti pulsanti o selezionando la voce",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("1","0")
quest010 = new Question(
"Domanda 10",
0,
"In word è possibile sostituire facilmente una parola del documento con altre, senza dovere effettuare le singole operazioni di cancellazione e nuova digitazione.",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Copia","Taglia","copia formato","incolla","Formato/carattere")
corr=new Array("0","0","1","0","1")
quest011 = new Question(
"Domanda 11",
1,
"E' possibile modificare il carattere con il pulsante &nbsp;",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("i pulsanti sulla barra degli strumenti","barra dei menu / formato/ paragrafo","barra dei menu/file/","barra dei menu /modifica")
corr=new Array("1","1","0","0")
quest012 = new Question(
"Domanda 12",
1,
"Per impostare l'allineamento in un paragrafo è possibile utilizzare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest013 = new Question(
"Domanda 13",
0,
"In word non è possibile inserire il numero di pagina",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("File/imposta pagina/dimensioni","Modifica/seleziona tutto","Formato/sfondi")
corr=new Array("1","0","0")
quest014 = new Question(
"Domanda 14",
0,
"Per impostare &nbsp;la pagina e quindi scegliere l'orientamento e i margini superiori,inferiori.sinistro,destro, si devono eseguire le operazioni.",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest015 = new Question(
"Domanda 15",
0,
"Per inserire una tabella in word esiste solo la voce tabella nella barra dei menù",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Selezionare nella barra dei menù la voce tabella e quindi seleziona tabella","Nella barra degli strumenti /disegna tabella")
corr=new Array("1","0")
quest016 = new Question(
"Domanda 16",
0,
"Per selezionare una tabella bisogna",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest017 = new Question(
"Domanda 17",
0,
"Le celle delle tabelle non si possono colorare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Visualizzare l'anteprima di stampa","Correggere gli errori","Inserire sempre l'intestazione","Inserire sempre la pagina")
corr=new Array("1","1","0","0")
quest018 = new Question(
"Domanda 18",
1,
"In word prima di stampare sarebbe bene che si procedesse a",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array(".xls",".ppt",".doc",".html")
corr=new Array("0","0","0","1")
quest019 = new Question(
"Domanda 19",
0,
"Per visualizzare nella rete un documento realizzato con word bisogna salvarlo nel formato",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest020 = new Question(
"Domanda 20",
0,
"Non si possono inserire immagini in un documento .doc",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("copiare","tagliare","selezionare")
corr=new Array("0","0","1")
quest021 = new Question(
"Domanda 21",
0,
"Per effettuare &nbsp;modifiche nel documento bisogna sempre",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("1","0")
quest022 = new Question(
"Domanda 22",
0,
"In word eiste una funzione molto utile che permette di spostare un testo all'interno dello stesso documento, utilizzando il mouse",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("dalla barra degli strumenti","dalla barra del titolo","dalla barra dei menù")
corr=new Array("1","0","1")
quest023 = new Question(
"Domanda 23",
1,
"Gli elenchi in un documento si possono realizzare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest024 = new Question(
"Domanda 24",
0,
"Per la stampa di un documento &nbsp;non si può scegliere la &nbsp;stampante, nel caso in cui &nbsp;ne esistessero in laboratorio &nbsp;più di una",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest025 = new Question(
"Domanda 25",
0,
"In word non si possono inserire immagini",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("file","tabella","formato")
corr=new Array("0","1","0")
quest026 = new Question(
"Domanda 26",
0,
"Nel documento per inserire una tabella bisogna selezionare la voce inserisci tabella dalla barra dei menu",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("copiare","selezionare","visualizzare")
corr=new Array("0","1","0")
quest027 = new Question(
"Domanda 27",
0,
"Prima di eseguire le modifiche di un testo bisogna",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest028 = new Question(
"Domanda 28",
0,
"Per annullare l'operazione eseguita bisogna cliccare sullla barra del titolo",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest029 = new Question(
"Domanda 29",
0,
"In word non si possono inserire fogli di calcolo excel",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Copiare un testo","Fornire al testo una caratteristica grafica")
corr=new Array("0","1")
quest030 = new Question(
"Domanda 30",
0,
"IL termine formattare significa",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest031 = new Question(
"Domanda 31",
0,
"Le celle della tabella non si possono modificare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("shift","invio","tab")
corr=new Array("0","0","1")
quest032 = new Question(
"Domanda 32",
0,
"Per eseguire le tabulazioni bisogna &nbsp;utilizzare il tasto",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("fare clic nel righello nella posizione voluta","selezionare la voce &quot;inserisci&quot; dalla barra dei menù")
corr=new Array("1","0")
quest033 = new Question(
"Domanda 33",
0,
"Per impostare la tabulazione",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest034 = new Question(
"Domanda 34",
0,
"Le immagini inserite nel documento non si possono modificare",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("0","1")
quest035 = new Question(
"Domanda 35",
0,
"Word è un programma con le stesse caratteristiche di &quot;blocco note&quot; inserito nel sistema operativo windows",
resp,
corr,
"",
1,
0,
0,
"");

resp=new Array("Vero","Falso")
corr=new Array("1","0")
quest036 = new Question(
"Domanda 36",
0,
"In word esistono documenti con particolari caratteristiche chiamati &quot; modelli.&quot;",
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,quest031,quest032,quest033,quest034,quest035,quest036)

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.writeln ("<a name=\""+questions[quest].qname+"\"></a>")
document.write("\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>\n")
document.write("                  <table width=\"50\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"s_table_up_sx.gif\" height=\"30\">\n")
document.write("                    <tr> \n")
document.write("                      <td> \n")
document.write("                        <div align=\"center\"></div>\n")
document.write("                      </td>\n")
document.write("                    </tr>\n")
document.write("                  </table>\n")
document.write("                </td>\n")
document.write("                <td background=\"s_table_up.gif\" width=\"100%\"><img src=\"s_table_up.gif\" width=\"282\" height=\"30\"></td>\n")
document.write("                <td> \n")
document.write("                  <table width=\"31\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"s_table_up_dx.gif\" height=\"30\">\n")
document.write("                    <tr> \n")
document.write("                      <td> \n")
document.write("                        <div align=\"center\"><b><font color=\"#FFFFFF\" face=\"Arial, Helvetica, sans-serif\" size=\"2\">")
document.write(numord)
document.write("</font></b></div>\n")
document.write("                      </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("        </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=\"s_table_border_sx.gif\" align=\"right\" valign=\"top\"><img src=\"s_question_sx.gif\" width=\"57\" height=\"48\"></td>\n")
document.write("                <td width=\"100%\" bgcolor=\"ECE9D8\" 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\">\n")
document.write("                            ")
document.writeln(questions[quest].qstring)
document.write("\n")
document.write("                          </td>\n")
document.write("                        </table>\n")
document.write("                      </td>\n")
document.write("                    </tr>\n")
document.write("                    <tr height=10></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=\"s_table_border_dx.gif\"><img src=\"s_table_border_dx.gif\" width=\"31\" height=\"24\"></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=\"s_table_dn_sx.gif\" width=\"50\" height=\"15\"></td>\n")
document.write("                <td background=\"s_table_dn_bord.gif\" width=\"100%\"><img src=\"s_table_dn_bord.gif\" width=\"282\" height=\"15\"></td>\n")
document.write("                <td><img src=\"s_table_dn_dx.gif\" width=\"31\" height=\"15\"></td>\n")
document.write("              </tr>\n")
document.write("            </table>\n")
document.write("          </td>\n")
document.write("        </tr>\n")
document.write("      </table>\n")
document.write("	  <br>\n")
document.write("      ")
}
function doTest() {
var count, i;

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,due,tre)
{
if (!errori) winr.document.write("<H3>Hai commesso i seguenti errori:</H3>");
++errori;
winr.document.write("<p><b>"+uno+"</b><br>"+due+"<br>"+tre+"</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>Risultati</title><BASE target='_blank'></head><body bgcolor='#FFFFFF'><font face='Verdana, Arial'><table border=0 cellpadding=0 cellspacing=0 width='100%' bgcolor='#C0C0C0'><tr><td width='100%'><font face='Verdana, Arial' size=5 color='#FFFFFF'><b>&nbsp;Risultati</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,"La casella <i>"+questions[i].response[selection]+"</i> non andava selezionata.",questions[i].explan)
}} else {
if (questions[i].corrects[selection]=="1") {
iswrong=true;
if (multi) errore(questions[i].qname,"La casella <i>"+questions[i].response[selection]+"</i> 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<questions[i].corrects.length; z++) {
if (questions[i].corrects[z]==1) {
okresp=questions[i].response[z];
break;
}}}
errore(questions[i].qname,"La risposta corretta era <i>"+okresp+".</i>",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("<br><b>In totale hai commesso "+errori+" error"+voc+".</b>");}
else winr.document.write("<h3>Complimenti, non hai commesso alcun errore!</h3>")
{var voc=(total==1)?"o":"i";winr.document.write("<br><b>Punteggio realizzato: "+total+" punt"+voc+".</b><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>Creato e gestito con <a title='Premi qui per visitare il sito di WebQuiz' href='http://www.smartlite.it/go.asp?OLDLO' target = '_blank'>SmartLite WebQuiz</a></small></small></p>"
