\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 PrintAnswer(n,textField)
{
var msg;
var explan = new initListOfRemark(n);
if (silent==1) {
if (PrintAnswer.arguments.length>1)
textField.value = "Selected answer";
}
else {
if (valid[n]==1) {
if (PrintAnswer.arguments.length>1)
textField.value = "Correct answer";
msg = "Good ! Right answer";
}
else {
msg = "Wrong! The correct answer was " + getListOfRightAns(n);
if (PrintAnswer.arguments.length>1)
textField.value = msg;
msg = "" + msg + "";
}
PrintAnswerOnTopFrame(msg,explan,GetSoundName(n));
}
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("You have answered all of the questions");
EndQuiz();
}
return end_test;
}
function PrintOpenAnswer(n,outMsg) {
outMsg.value = "Answer completed";
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("You have answered all of the questions");
EndQuiz();
}
return end_test;
}
function PrintBooleanAnswer(n,textField)
{
var msg,msg2,msgFormat;
var explan= new initOneElementVector();
explan[0] = "";
if (silent==0) {
msg = "Right Answers " + nScore[n] + " / " + getNumAns(n);
textField.value = msg;
msgFormat = "" + msg + "";
if (nScore[n]
");
for (i=0;i