\n");
}
function GetVoto(mark)
{
var tipo;
var str="";
tipo = GetTypeOfSubstitution(mark);
if (tipo == 2) {
return GetRemFromMark(voto);
}
else {
if (markPercentage==0) {
str += ""+voto+"/"+maxvoto;
}
else {
str += ""+voto+"/"+maxvoto+" ( "+Math.floor(voto*100/maxvoto)+"% )";
}
if (tipo == 1) {
str += " - "+GetRemFromMark(voto);
}
return str;
}
}
function getRispostaSelezionata(n,m)
{
return getHTMLResultBox(checkIcon,"gekozen antwoord","#000080","",m);
}
function getHTMLResultBox(nomeIco,title,titleColor,bodyMsg,n)
{
if (resultBoxKind==0)
return getHTMLResultEmbed(nomeIco,title,titleColor,bodyMsg,n);
else
return getHTMLResultWin(nomeIco,title,titleColor,bodyMsg);
}
function getHTMLResultEmbed(nomeIco,title,titleColor,bodyMsg,n)
{
var msg;
var icoImage;
icoImage = mediaDir+"/"+nomeIco;
msg = "
";
msg += " | ";
msg += title + " |
";
if (bodyMsg!="")
msg += "" + bodyMsg + "
";
msg += "";
return msg;
}
function getHTMLResultWin(nomeIco,title,titleColor,bodyMsg)
{
var msg;
var icoImage;
icoImage = mediaDir+"/"+nomeIco;
msg = " ";
msg += " | ";
msg += title + " |
";
if (bodyMsg!="")
msg += "" + bodyMsg + "
";
msg += "";
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 = "goede antwoorden " + nScore[n] + " / " + getNumAns(n);
if (nScore[n]";
}
}
return getHTMLResultBox(okIcon,"prima! goede antwoord","#000080",msg,m);
}
function getWrongAnswer(n,m,explan)
{
var i,title,msg="";
title = "fout!
het goede antwoord was " + 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 = "score " + nScore[n];
if (groups[n]==0)
title += " / score " + maxScore[n];
if (getGuessAns(n)1)&&(questSlide==0)) {
layer = document.all.hideTxt[m];
table = document.all.hideAns[m];
}
else {
layer = document.all.hideTxt;
table = document.all.hideAns;
}
if (silent==1) {
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
}
else {
if (valid[n]==1) {
ShowResultBox(getRightAnswer(n,m,explan),layer,table);
if (soundEnable==1)
PlaySound(document.okSound);
}
else {
ShowResultBox(getWrongAnswer(n,m,explan),layer,table);
if (soundEnable==1)
PlaySound(document.errSound);
}
}
end_test = CountAnswers();
UpdateSlideMenu();
if (end_test==1) {
window.status = "";
window.alert("je hebt alle vragen beantwoord");
EndQuiz();
}
else {
PrintStatusBar();
}
return end_test;
}
function PrintOpenAnswer(n) {
end_test = CountAnswers();
UpdateSlideMenu();
if (end_test==1) {
window.status = "";
window.alert("je hebt alle vragen beantwoord");
EndQuiz();
}
else {
PrintStatusBar();
}
return end_test;
}
function PrintBooleanAnswer(n,m)
{
var i,count;
var layer;
var table;
if ((questions-invisibleQuests>1)&&(questSlide==0)) {
layer = document.all.hideTxt[m];
table = document.all.hideAns[m];
}
else {
layer = document.all.hideTxt;
table = document.all.hideAns;
}
if (silent==0) {
ShowResultBox(getBooleanAnswer(n,m),layer,table);
if (soundEnable==1)
PlaySoundBooleanAns(n);
}
else
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
end_test = CountAnswers();
UpdateSlideMenu();
if (end_test==1) {
window.status = "";
window.alert("je hebt alle vragen beantwoord");
EndQuiz();
}
else {
PrintStatusBar();
}
return end_test;
}
function PrintQuestionScore(n,m)
{
var i,count;
var layer;
var table;
if ((questions-invisibleQuests>1)&&(questSlide==0)) {
layer = document.all.hideTxt[m];
table = document.all.hideAns[m];
}
else {
layer = document.all.hideTxt;
table = document.all.hideAns;
}
if (silent==0) {
ShowResultBox(getQuestionScore(n,m),layer,table);
if (soundEnable==1)
PlaySoundWithScore(maxScore[n]);
}
else
ShowResultBox(getRispostaSelezionata(n,m),layer,table);
end_test = CountAnswers();
UpdateSlideMenu();
if (end_test==1) {
window.status = "";
window.alert("je hebt alle vragen beantwoord");
EndQuiz();
}
else {
PrintStatusBar();
}
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)) {
document.all.check[n].className='checkShow';
document.all.hideAns[n].className='cardHide';
}
else {
document.all.check.className='checkShow';
document.all.hideAns.className='cardHide';
}
}
function UpdateSlideMenu()
{
if (silent==0) {
document.all.nRight.innerText = nc;
document.all.nWrong.innerText = ns;
}
document.all.nToDo.innerText = nr;
if (questions-invisibleQuests>1) {
for (var i=0;ilet op!
");
document.writeln ("het sleutelwoord is fout
");
document.writeln ("het is niet mogelijk om verder te gaan met de quiz
");
document.writeln ("neem contact op met de auteur voor informatie
");
document.writeln("");
document.writeln("");
document.writeln ("