oab sao paulo114
\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 = "Resposta selecionada";
}
else {
if (valid[n]==1) {
if (PrintAnswer.arguments.length>1)
textField.value = "Resposta correcta";
msg = "
Excelente! Resposta correcta";
}
else {
msg = "Incorrecto! A resposta correcta era " + 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("Já respondeu a todas as perguntas");
EndQuiz();
}
return end_test;
}
function PrintOpenAnswer(n,outMsg) {
outMsg.value = "Questão respondida";
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("Já respondeu a todas as perguntas");
EndQuiz();
}
return end_test;
}
function PrintBooleanAnswer(n,textField)
{
var msg,msg2,msgFormat;
var explan= new initOneElementVector();
explan[0] = "";
if (silent==0) {
msg = "Respostas correctas " + nScore[n] + " / " + getNumAns(n);
textField.value = msg;
msgFormat = "
" + msg + "";
if (nScore[n]
";
if (getGuessAns(n)A resposta correcta era " + getListOfRightAns(n);
PrintAnswerOnTopFrame(msgFormat,explan,GetSoundName(n));
}
else
textField.value = "Resposta selecionada";
end_test = CountAnswers();
PrintBottomFrame();
PrintStatusBar();
if (end_test==1) {
window.status = "";
window.alert("Já respondeu a todas as perguntas");
EndQuiz();
}
return end_test;
}
function PrintAnswerOnTopFrame(message,explan,soundFile)
{
var i;
frames.quiz_top.document.clear();
frames.quiz_top.document.open();
PrintOpenHTML(frames.quiz_top.document,"",1);
frames.quiz_top.document.writeln (bodyTagFrame2);
frames.quiz_top.document.writeln ("");
frames.quiz_top.document.writeln (message+"
");
for (i=0;i")
}
frames.quiz_top.document.writeln ("");
if (soundFile!='')
frames.quiz_top.document.writeln ("