";
return msg;
}
function getBooleanAnswer(n,m)
{
var nomeIcona,title,msg="";
if (nScore[n]==getNumAns(n))
nomeIcona = okIcon;
else if (nScore[n]==0)
nomeIcona = koIcon;
else
nomeIcona = warnIcon;
title = "Risposte corrette " + nScore[n] + " / " + getNumAns(n);
if (nScore[n]";
}
}
return getHTMLResultBox(okIcon,"Bravo ! Risposta esatta","#000080",msg,m);
}
function getWrongAnswer(n,m,explan)
{
var i,title,msg="";
title = "Errato! La risposta corretta era " + getListOfRightAns(n);
for (i=0;i";
}
}
return getHTMLResultBox(koIcon,title,"#A52A2A",msg,m);
}
function getQuestionScore(n,m)
{
var i,title,msg="";
var nomeIcona;
if (maxScore[n]==maxvoto)
nomeIcona = okIcon;
else if (maxScore[n]==minvoto)
nomeIcona = koIcon;
else
nomeIcona = warnIcon;
title = "Punteggio " + nScore[n];
if (groups[n]==0)
title += " / VOTO " + maxScore[n];
if (getGuessAns(n)1)&&(questSlide==0)) {
layer = frames.quiz_main.document.all.hideTxt[m];
table = frames.quiz_main.document.all.hideAns[m];
}
else {
layer = frames.quiz_main.document.all.hideTxt;
table = frames.quiz_main.document.all.hideAns;
}
if (silent==1) {
if (questSlide==0) {
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
}
}
else {
if (valid[n]==1) {
ShowResultBox(getRightAnswer(n,m,explan),layer,table);
PlaySoundFile(okSound);
}
else {
ShowResultBox(getWrongAnswer(n,m,explan),layer,table);
PlaySoundFile(errSound);
}
}
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) {
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,m)
{
var i,count;
var layer;
var table;
if ((questions-invisibleQuests>1)&&(questSlide==0)) {
layer = frames.quiz_main.document.all.hideTxt[m];
table = frames.quiz_main.document.all.hideAns[m];
}
else {
layer = frames.quiz_main.document.all.hideTxt;
table = frames.quiz_main.document.all.hideAns;
}
if (silent==0) {
ShowResultBox(getBooleanAnswer(n,m),layer,table);
PlaySoundBooleanAns(n);
}
else {
if (questSlide==0) {
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
}
}
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("Hai risposto a tutte le domande");
EndQuiz();
}
return end_test;
}
function PrintQuestionScore(n,m)
{
var i,count;
var layer;
var table;
if ((questions-invisibleQuests>1)&&(questSlide==0)) {
layer = frames.quiz_main.document.all.hideTxt[m];
table = frames.quiz_main.document.all.hideAns[m];
}
else {
layer = frames.quiz_main.document.all.hideTxt;
table = frames.quiz_main.document.all.hideAns;
}
if (silent==0) {
ShowResultBox(getQuestionScore(n,m),layer,table);
PlaySoundWithScore(maxScore[n]);
}
else {
if (questSlide==0) {
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
}
}
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("Hai risposto a tutte le domande");
EndQuiz();
}
return end_test;
}
function ShowResultBox (htmlTag,layer,table)
{
if (resultBoxKind==0) {
layer.innerHTML = htmlTag;
table.className = 'cardShow';
}
else {
if (silent==0) {
resultWin = window.open('mio.htm','resWin','scrollbars=yes,menubar=no,status=no,location=no,toolbar=no,width=432,height=150');
resultWin.document.all.hideTxt.innerHTML = htmlTag;
}
}
}
function hideWindow(n) {
if ((questions-invisibleQuests>1)&&(questSlide==0)) {
frames.quiz_main.document.all.check[n].className='checkShow';
frames.quiz_main.document.all.hideAns[n].className='cardHide';
}
else {
frames.quiz_main.document.all.check.className='checkShow';
frames.quiz_main.document.all.hideAns.className='cardHide';
}
}
function PrintBottomFrame()
{
if (silent==0) {
frames.quiz_status.document.all.nRight.innerText = nc;
frames.quiz_status.document.all.nWrong.innerText = ns;
}
frames.quiz_status.document.all.nToDo.innerText = nr;
}
function PrintWrongKeyword()
{
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("