jesuswordsonly/topicindex/355-quiz-1-for-jwo-law-a-covenants.html

2316 lines
72 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
<head>
<base href="http://jesuswordsonly.com/topicindex/355-quiz-1-for-jwo-law-a-covenants.html" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="Jesus Words, Jesus Words Only, Jesus Words on Salvation, Did Calvin Murder Servetus, Flaws of Young Earth Science, Ingenious Design, Apostle Paul, False Apostle Paul" />
<meta name="title" content="Quiz #1 for JWO - Law & Covenants" />
<meta name="author" content="DJD" />
<meta name="description" content="Jesus Words Only focuses on the words of Jesus as the sole inspired portion of the New Testament Scripture" />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>Quiz #1 for JWO - Law &amp; Covenants</title>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<link rel="shortcut icon" href="/images/favicon.ico" />
<link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
<link href="/templates/js_relevant/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/templates/js_relevant/css/nav.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/templates/js_relevant/css/style1.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE]>
<link href="/templates/js_relevant/css/ie.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<!--[if IE]>
<link href="/templates/js_relevant/css/ie.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<!--[if lte IE 6]>
<style type="text/css">
img { behavior: url(/templates/js_relevant/js/iepngfix.htc); }
</style>
<![endif]-->
</head>
<body>
<div id="main-wrapper">
<div id="header_graphic">
<div class="inside">
<div id="newsflash"> <div class="moduletable">
<table class="contentpaneopen">
<tr>
<td valign="top" >"[Current] Protestantism is a revolution...proclaiming 'the Apostle Paul' at the expense of the Master (Christ)." (Kierkegaard, <em>Journals</em>)</td>
</tr>
<tr>
<td valign="top" >
</td>
</tr>
</table>
</div>
</div>
<h1><a href="http://jesuswordsonly.com/" title="Relevant">Relevant</a></h1>
<h2>A Joomla! Template for the Rest of Us</h2>
</div>
</div>
<div class="menubar">
<div id="navmenu">
<script type="text/javascript" src="/templates/js_relevant/js/barmenu.js"></script>
<ul class="menu"><li><a href="http://jesuswordsonly.com/"><span>Home</span></a></li><li class="haschild"><a href="/books.html" class="haschild"><span>Books</span></a><ul><li class="haschild"><a href="/books/jesuswordsonly.html" class="child"><span>Jesus' Words Only</span></a><ul><li><a href="/books/jesuswordsonly/jesus-words-only-amazon.html"><span>Purchase from Amazon.com</span></a></li></ul></li><li class="haschild"><a href="/books/jesuswordssalvation.html" class="child"><span>Jesus' Words on Salvation</span></a><ul><li><a href="/books/jesuswordssalvation/jesus-word-on-salvation-amazon.html"><span>Purchase from Amazon.com</span></a></li></ul></li><li class="haschild"><a href="/books/didcalvinmurderservetus.html" class="child"><span>Did Calvin Murder Servetus?</span></a><ul><li><a href="/books/didcalvinmurderservetus/download-e-book.html"><span>Download e-Book</span></a></li><li><a href="/books/didcalvinmurderservetus/background-material-did-calvin-murder-servetus.html"><span>Background Material</span></a></li><li><a href="/books/didcalvinmurderservetus/purchase-from-amazoncom.html"><span>Purchase from Amazon.com</span></a></li></ul></li><li class="haschild"><a href="/books/hownottosudythebible.html" class="child"><span>How Not to Study the Bible</span></a><ul><li><a href="/books/hownottosudythebible/download-e-book.html"><span>Download e-Book</span></a></li></ul></li><li class="haschild"><a href="/books/flawsofyoungearthscience.html" class="child"><span>Flaws of Young Earth Science</span></a><ul><li><a href="/books/flawsofyoungearthscience/download-e-book.html"><span>Download e-Book</span></a></li></ul></li><li><a href="/books/unintended-disservice.html"><span>Unintended Disservice</span></a></li><li><a href="/books/original-gospel-of-matthew.html"><span>Original Gospel of Matthew</span></a></li></ul></li><li><a href="/recommendedreading.html"><span>Further Reading</span></a></li><li><a href="/media.html"><span>Media</span></a></li><li class="haschild"><a href="/reviews.html" class="haschild"><span>Reviews</span></a><ul><li><a href="/reviews/jwo-reviews.html"><span>Jesus Words Only</span></a></li><li><a href="/reviews/jwos-reviews.html"><span>Jesus Words on Salvation</span></a></li></ul></li><li><a href="/contactus.html"><span>Contact Us</span></a></li><li><a href="http://astore.amazon.com/jwoogm-20"><span>Amazon Shop</span></a></li><li id="current" class="active"><a href="/topicindex.html"><span>Topic Index</span></a></li><li><a href="/aboutauthor.html"><span>About Author</span></a></li></ul>
</div>
</div>
<div id="mainbody">
<div id="showcasetop">&nbsp;</div>
<table width="940" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td id="leftcol" valign="top" width="200">
<div class="inside">
<div class="moduleS1">
<div>
<div>
<div>
<h3>Questions?</h3>
Please enter your questions, and we will get back to you as soon as possible. As an anti-spam measure, we ask that you re-type the code you see in the box below, prior to clicking "Send Message"<br /><br />
<form name="s5_quick_contact" method="post" action="">
<input class="inputbox" id="namebox" onclick="s5_qc_clearname()" onfocus="s5_qc_clearname()" style="font-size:11px; font-family:arial; width:80%" type="text" value="Name..." name="name"></input><br />
<input class="inputbox" id="emailbox" onclick="s5_qc_clearemail()" onfocus="s5_qc_clearemail()" style="font-size:11px; font-family:arial; width:80%" type="text" value="Email..." name="email"></input><br />
<input class="inputbox" id="subjectbox" onclick="s5_qc_clearsubject()" onfocus="s5_qc_clearsubject()" style="font-size:11px; font-family:arial; width:80%" type="text" value="Subject..." name="subject"></input><br />
<textarea id="messagebox" rows="" cols="" class="inputbox textarea" onclick="s5_qc_clearbody()" onfocus="s5_qc_clearbody()" style="font-size:11px; font-family:arial; overflow:auto;width:80%; height:55px" name="message">Your Message...</textarea><br />
<input class="inputbox" id="spambox" onclick="s5_qc_clearspam()" onfocus="s5_qc_clearspam()" style="font-weight:bold; font-size:11px; font-family:arial; width:80%" type="text" value="Enter The Code 5145" name="verif_box"></input><br />
<input id="email_address" type="hidden" value="" name="email_address"></input>
<input class="button" type="button" onclick="s5_qc_submit()" value="Send Message" ></input>
</form>
<script language="javascript" type="text/javascript">
// <![CDATA[
var s5_qc_spam_text = document.getElementById("spambox").value;
function s5_qc_clearbody() {
if (document.getElementById("messagebox").value == "Your Message...") {
document.getElementById("messagebox").value="";
}
if (document.getElementById("namebox").value.length < 1) {
document.getElementById("namebox").value = "Name...";
}
if (document.getElementById("emailbox").value.length < 1) {
document.getElementById("emailbox").value = "Email...";
}
if (document.getElementById("subjectbox").value.length < 1) {
document.getElementById("subjectbox").value = "Subject...";
}
if (document.getElementById("spambox").value.length < 1) {
document.getElementById("spambox").value = s5_qc_spam_text;
}
}
function s5_qc_clearname() {
if (document.getElementById("namebox").value == "Name...") {
document.getElementById("namebox").value="";
}
if (document.getElementById("messagebox").value.length < 1) {
document.getElementById("messagebox").value = "Your Message...";
}
if (document.getElementById("emailbox").value.length < 1) {
document.getElementById("emailbox").value = "Email...";
}
if (document.getElementById("subjectbox").value.length < 1) {
document.getElementById("subjectbox").value = "Subject...";
}
if (document.getElementById("spambox").value.length < 1) {
document.getElementById("spambox").value = s5_qc_spam_text;
}
}
function s5_qc_clearemail() {
if (document.getElementById("emailbox").value == "Email...") {
document.getElementById("emailbox").value="";
}
if (document.getElementById("namebox").value.length < 1) {
document.getElementById("namebox").value = "Name...";
}
if (document.getElementById("messagebox").value.length < 1) {
document.getElementById("messagebox").value = "Your Message...";
}
if (document.getElementById("subjectbox").value.length < 1) {
document.getElementById("subjectbox").value = "Subject...";
}
if (document.getElementById("spambox").value.length < 1) {
document.getElementById("spambox").value = s5_qc_spam_text;
}
}
function s5_qc_clearsubject() {
if (document.getElementById("subjectbox").value == "Subject...") {
document.getElementById("subjectbox").value="";
}
if (document.getElementById("namebox").value.length < 1) {
document.getElementById("namebox").value = "Name...";
}
if (document.getElementById("emailbox").value.length < 1) {
document.getElementById("emailbox").value = "Email...";
}
if (document.getElementById("messagebox").value.length < 1) {
document.getElementById("messagebox").value = "Your Message...";
}
if (document.getElementById("spambox").value.length < 1) {
document.getElementById("spambox").value = s5_qc_spam_text;
}
}
function s5_qc_clearspam() {
if (document.getElementById("spambox").value == s5_qc_spam_text) {
document.getElementById("spambox").value="";
}
if (document.getElementById("namebox").value.length < 1) {
document.getElementById("namebox").value = "Name...";
}
if (document.getElementById("emailbox").value.length < 1) {
document.getElementById("emailbox").value = "Email...";
}
if (document.getElementById("messagebox").value.length < 1) {
document.getElementById("messagebox").value = "Your Message...";
}
if (document.getElementById("subjectbox").value.length < 1) {
document.getElementById("subjectbox").value = "Subject...";
}
}
function s5_qc_isValidEmail(str_email) {
if (str_email.indexOf(".") > 2 && str_email.indexOf("@") > 0) {
alert('Your email is now being submitted - Thank you!');
document.s5_quick_contact.submit();
}
else {
alert('Your email address is not valid, please check again - Thank you!');
}
}
function s5_qc_submit() {
if (document.getElementById("spambox").value == s5_qc_spam_text || document.getElementById("subjectbox").value == "Subject..." || document.getElementById("namebox").value == "Name..." || document.getElementById("emailbox").value == "Email..." || document.getElementById("messagebox").value == "Your Message...") {
alert('All fields are required, please complete the form - Thank you!');
return false;
}
if (document.getElementById("spambox").value != "5145") {
alert('Your spam verification answer is incorrect.');
return false;
}
var s5_message_holder = document.getElementById("messagebox").value;
var s5_first_message_char = s5_message_holder.charAt(0);
var s5_second_message_char = s5_message_holder.charAt(1);
var s5_third_message_char = s5_message_holder.charAt(2);
var s5_fourth_message_char = s5_message_holder.charAt(3);
if (s5_first_message_char == "<") {
return false;
}
if (s5_first_message_char == "w" && s5_second_message_char == "w" && s5_third_message_char == "w") {
return false;
}
if (s5_first_message_char == "h" && s5_second_message_char == "t" && s5_third_message_char == "t") {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
if (s5_message_holder.indexOf("s5_qc_null") >= 0) {
return false;
}
else {
document.getElementById("email_address").value = "info@jesuswordsonly.com";
var email_str = document.getElementById("emailbox").value;
s5_qc_isValidEmail(email_str);
}
}
// ]]>
</script>
</div>
</div>
</div>
</div>
</div>
</td>
<td id="maincol" valign="top">
<div id="breadcrumbs">
<span class="breadcrumbs pathway">
<a href="http://jesuswordsonly.com/" class="pathway">Home</a> <img src="/templates/js_relevant/images/arrow.png" alt="" /> Topic Index</span>
</div>
<table class="contentpaneopen">
<tr>
<td valign="top">
<div><a href="/images/stories/Quizzes/JWO2012.htm">Quiz on Law &amp; Covenants</a> -- 16 questions</div>
<div><a href="/images/stories/Quizzes/PaulProphecies.htm">Quiz on Jesus' Prophecies of Paul</a></div>
<meta content="Produced using Galli's QuizFaber 2.8.1" name="Author" />
<meta content="Galli's QuizFaber 2.8.1" name="generator" />
<meta content="quiz" name="keywords" />
<meta content="Covenants, Law &amp; Justification" name="description" />
<title>Covenants, Law &amp; Justification</title>
<script language="JavaScript"><!--
&lt;!
var qmakeVers = '2.8.1';
var qmakeProgName = "Galli's QuizFaber";
var qmakeURL = 'www.lucagalli.net/';
var dhtmlEnabled = 0;
var image='media/';
var image2='media/';
var bkCol1='#FFFFFF';
var bkCol2='#FFFFFF';
var okSound='media/';
var errSound='media/';
var warnSound='media/';
var valid = new init_array(18);
var nScore = new init_array(18);
var maxScore = new init_array(18);
var questions=18;
var qstHead = new init_array(18);
var pageWidth = 80;
var groups = new init_array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
var quizTitle="Covenants, Law &amp; Justification";
var maxtime=1800;
var keycode = new init_array(6);
var keyword = 'syskey';
MakeKeyCode();
var los = 0;
var maxvoto = 10;
var minvoto = 0;
var roundvoto = 1;
var voto = 0;
var silent = 0;
var quizRetire = 0;
var showReport = 1;
var ncols_report = 1;
var valutaQuiz = 1;
var falseQuests = 0;
var invisibleQuests = 0;
var auto_repeat = 0;
var man_repeat = 0;
var n_repeat = 0;
var linkback = '';
var linkname = 'CLOSE';
var openNewWin = 1;
var finalMess = '';
var printCpRg=1;
var filename = 'JWO';
var topChartFile='';
var pesi = new init_array(18);
var allAnsReport = new init_array(18);
var author = '';
var mediaDir = 'media';
var questSlide = 0;
var resultBoxKind = 0;
var ordineDomande = new init_array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17);
var typeOfQuest = new init_array(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
var omitPoint = new init_array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
var ctmnow=0,cnewdt;
var time, oldtime;
var nc=0, ns=0, nr; var end_test=0; var userName=""; var identityName=""; var computeMarkErr = 0;
var dlgList = new init_array(10);
var nDlgs = 0;
function pluginInstalled(str)
{
var i;
for (i=0; i&lt;navigator.plugins.length; i++) {
if (navigator.plugins[i].name.indexOf(str) != -1)
return true;
}
return false;
}
function getBrowser()
{
if (navigator.appName=="Netscape")
return "NS";
if (navigator.appName=="Microsoft Internet Explorer")
return "IE";
return "";
}
function getBrowserVers()
{
return parseInt (navigator.appVersion.charAt(0));
}
function init_array()
{
this.length = init_array.arguments.length;
for (var i=0;i&lt;this.length;i++)
this[i]=init_array.arguments[i];
}
function valore_hex(n)
{
if (n&lt;=9) return n;
if (n==10) return 'A';
if (n==11) return 'B';
if (n==12) return 'C';
if (n==13) return 'D';
if (n==14) return 'E';
if (n==15) return 'F';
}
function initOneElementVector() {
this.length=1;
}
function valore_dec(c)
{
var n=0;
if (c&lt;='9') n=eval(c);
if ((c=='A')||(c=='a')) n=10;
if ((c=='B')||(c=='b')) n=11;
if ((c=='C')||(c=='c')) n=12;
if ((c=='D')||(c=='d')) n=13;
if ((c=='E')||(c=='e')) n=14;
if ((c=='F')||(c=='f')) n=15;
return n;
}
function dec_to_hex(str_dec)
{
var H=0,L=0;
var S="";
var dec=0;
dec = eval(str_dec);
H=Math.floor(dec/16);
L=dec%16;
S+=valore_hex(H);
S+=valore_hex(L);
return S;
}
function hex_to_dec(hex)
{
var d=0,H=0,L=0;
H=valore_dec(hex.charAt(0));
L=valore_dec(hex.charAt(1));
d=H*16+L;
return d;
}
function Lettera(cc)
{
var c,chr=65;
var a=0,b=0;
if (cc&lt;=25) {
chr+=cc;
c = unescape("%"+dec_to_hex(chr));
}
else {
a = Math.floor(cc / 26);
b = cc % 26;
chr+=b;
c = unescape("%"+dec_to_hex(chr));
c = "" + a + c;
}
return c;
}
function ComputeMarks()
{
var voto = 0;
var sommaPesi = 0;
var sommatoria = 0;
var votoReal = 0.0;
var puntiGruppo = 0;
var votoGruppo;
var iCapoGruppo;
for (var i=0;i&lt;questions;i++) {
if ((valid[i]!=2)&amp;&amp;
(valid[i]!=4)&amp;&amp;
((groups[i]==0) || (groups[i]==2)))
sommaPesi += pesi[i];
if (valid[i]==1)
sommatoria += pesi[i];
else if (valid[i]==3)
sommatoria += (pesi[i] * nScore[i]) / maxScore[i];
else if (valid[i]==5) {
if (groups[i]==0)
sommatoria += pesi[i] * (maxScore[i]-minvoto)/(maxvoto-minvoto);
else if (groups[i]==2) {
puntiGruppo = nScore[i];
iCapoGruppo = i;
i++;
while (groups[i]==1) {
puntiGruppo += nScore[i];
i++;
}
votoGruppo = ConvertPointToMark(iCapoGruppo,puntiGruppo);
maxScore[iCapoGruppo] = votoGruppo;
sommatoria += pesi[iCapoGruppo] * (votoGruppo-minvoto)/(maxvoto-minvoto);
}
}
}
if (sommaPesi!=0) {
if (roundvoto==1)
voto = minvoto + Math.round(sommatoria*(maxvoto-minvoto)/sommaPesi);
else if (roundvoto==0) {
voto = minvoto + sommatoria*(maxvoto-minvoto)/sommaPesi;
}
else {
votoReal = sommatoria*(maxvoto-minvoto)/sommaPesi;
voto = minvoto + Math.round(votoReal / roundvoto) * roundvoto;
}
}
else {
window.alert("Warning: unable to compute final mark");
computeMarkErr = 1;
voto = 0;
}
return voto;
}
function StartTime()
{
var data,sec;
data = new Date();
sec = Math.floor(data.getTime()/1000);
return sec;
}
function getTimeString(deltatime)
{
var resto,h,m,s;
var str;
h = Math.floor(deltatime/3600);
resto = deltatime%3600;
m = Math.floor(resto/60);
s = resto%60;
if (h&lt;10) h='0'+h;
if (m&lt;10) m='0'+m;
if (s&lt;10) s='0'+s;
str = h+":"+m+":"+s;
return str;
}
function AskMeName()
{
userName = window.prompt("Insert your name :","");
if (userName=="") {
userName = "unknown";
}
identityName = userName;
userName = "Candidate name="+userName;
}
function AskMeKeyword(word)
{
if (word=='') {
keyword = window.prompt("Insert the keyword:","");
if (keyword==null) {
PrintWrongKeyword();
return false;
}
}
else
keyword = word;
MakeKeyCode();
return true;
}
function PrintAnswerOnTopFrame(message,explan,soundFile)
{
var i;
parent.frames[0].document.clear();
parent.frames[0].document.open();
PrintOpenHTML(0,"",1);
parent.frames[0].document.writeln ("&lt;body BACKGROUND='"+parent.image2+"' BGCOLOR='"+parent.bkCol2+"'&gt;");
parent.frames[0].document.writeln ("&lt;center&gt;");
parent.frames[0].document.writeln (message+"&lt;BR&gt;");
for (i=0;i&lt;explan.length; i++) {
if (explan[i]!="")
parent.frames[0].document.writeln (explan[i]+"&lt;BR&gt;")
}
parent.frames[0].document.writeln ("&lt;/center&gt;");
parent.frames[0].document.writeln ("&lt;span class="mceItemEmbed" SRC=""+soundFile+"" mce_SRC="&amp;quot;+soundFile+&amp;quot;" AUTOSTART=TRUE HIDDEN=TRUE&gt;&lt;/span&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
}
function setCookie(name,value,minuti)
{
var expdate= new Date(); /* data di scadenza */
value+="#"; /* fine cookie */
expdate.setTime(expdate.getTime()+(60000*minuti));
document.cookie = name+"="+escape(value)+"; expires="+expdate.toGMTString();
}
function getCookie(name)
{
var arg;
var alen;
var clen = document.cookie.length;
var i=0,j,k;
var valore;
arg = name + "=";
alen=arg.length
while (i&lt;clen) {
j = i+alen;
if (document.cookie.substring(i,j)==arg) {
k = document.cookie.indexOf(escape("#"),j+1);
valore = unescape(document.cookie.substring(j,k));
return valore;
}
i = document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return ""; /* lettura fallita */
}
function VerifyReload(time,titolo)
{
var valore = getCookie("Qmake"+qmakeVers);
if (valore==titolo) {
PrintNoReload();
return 0;
}
setCookie("Qmake"+qmakeVers,titolo,time);
return 1;
}
function verifyAnswer (risp,nrisp,ri)
{
var i;
for (i=0;i&lt;nrisp;i++) {
if (risp[i]==ri)
return 1;
}
return 0;
}
function isRightAns(nAns,risp)
{
var i;
for (i=0; i&lt;risp.length; i++)
if (risp[i]==nAns)
return 1;
return 0;
}
function DoneBefore()
{
window.alert("Hey! You have already answered the question");
}
function PrintStatusBar()
{
var i;
var msg;
if (nr==questions)
return;
if (silent==1) {
window.status="to be answered: "+nr+" questions.";
return;
}
msg="on "+(questions-nr)+" questions, ";
if (nc&gt;1) msg+=nc+" right and ";
if (nc==1) msg+=" only one exact and ";
if (nc==0) msg+=" nothing exact and ";
if (ns&gt;1) msg+=ns+" wrong.";
if (ns==1) msg+=" only one wrong.";
if (ns==0) msg+=" nothing wrong.";
msg+=" You must answer to ";
if (nr&gt;1) msg+=nr+" questions.";
else msg+=" one question.";
window.status=msg;
}
function getHTMLTagSound(soundFile)
{
var tagSound = "";
if (parent.pluginInstalled("Crescendo"))
{
if (parent.getBrowser()=="NS") {
if (parent.getBrowserVers()==2) {
tagSound = '&lt;span class="mceItemEmbed" SRC="'+soundFile+'" mce_SRC="'+soundFile+'" ';
tagSound += 'HEIGHT=2 WIDTH=0 ';
tagSound += 'loop="true" autostart="TRUE"&gt;&lt;/span&gt;';
}
else {
tagSound = '&lt;span class="mceItemEmbed" TYPE="music/crescendo" ';
tagSound += 'SONG="'+soundFile+'" ';
tagSound += 'PLUGINSPAGE="www.liveupdate.com/dl.html" ';
tagSound += 'loop="true" autostart="TRUE" ';
tagSound += 'HEIGHT=2 WIDTH=0&gt;&lt;/span&gt;';
}
}
if (parent.getBrowser()=="IE") {
tagSound = '&lt;span class="mceItemObject" ID=Crescendo ';
tagSound += 'CLASSID="clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326" ';
tagSound += 'HEIGHT=2 WIDTH=0&gt; ';
tagSound += '&lt;span NAME="Song" value="'+soundFile+'" class="mceItemParam"&gt;&lt;/span&gt;&lt;/span&gt;';
}
}
else { if (parent.getBrowser()=="NS") {
tagSound = '&lt;span class="mceItemEmbed" SRC="'+soundFile+'" mce_SRC="'+soundFile+'" ';
tagSound += 'HEIGHT=15 loop=yes autostart=true&gt;&lt;/span&gt;';
}
if (parent.getBrowser()=="IE")
tagSound = '&lt;BGSOUND src="'+soundFile+'" mce_src="'+soundFile+'" loop=infinite&gt;';
}
return tagSound;
}
function DataToStringa()
{
var obj = new Date();
var mese,giorno;
var nome="";
var stringa="";
var strData;
giorno = obj.getDay();
switch(giorno) {
case 0: nome = "Sunday"; break;
case 1: nome = "Monday"; break;
case 2: nome = "Tuesday"; break;
case 3: nome = "Wednesday"; break;
case 4: nome = "Thursday"; break;
case 5: nome = "Friday"; break;
case 6: nome = "Saturday"; break;
}
strData = nome+", "+obj.getDate();
mese = obj.getMonth();
switch(mese) {
case 0: nome = "January"; break;
case 1: nome = "February"; break;
case 2: nome = "March"; break;
case 3: nome = "April"; break;
case 4: nome = "May"; break;
case 5: nome = "June"; break;
case 6: nome = "July"; break;
case 7: nome = "August"; break;
case 8: nome = "September"; break;
case 9: nome = "October"; break;
case 10: nome = "November"; break;
case 11: nome = "December";
}
strData += " "+nome+" "+obj.getYear();
strData += " - ";
if (obj.getHours()&lt;10)
strData += "0" + obj.getHours();
else
strData += obj.getHours();
strData += ":";
if (obj.getMinutes()&lt;10)
strData += "0" + obj.getMinutes();
else
strData += obj.getMinutes();
strData += ":";
if (obj.getSeconds()&lt;10)
strData += "0" + obj.getSeconds();
else
strData += obj.getSeconds();
return strData;
}
function Retire()
{
if (window.confirm("Are you sure?")) {
end_test=1;
EndQuiz();
}
}
function PrintLinkBack(documento) {
documento.writeln("&lt;center&gt;&lt;TABLE WIDTH='"+pageWidth+"%' BORDER=0 BGCOLOR='#D0D0D0'&gt;\n");
if (linkback!="") {
documento.writeln("&lt;TD ALIGN='LEFT'&gt;\n");
documento.write("&lt;A HREF=""+linkback+"" mce_HREF="&amp;quot;+linkback+&amp;quot;" ");
if (openNewWin==1)
documento.write("TARGET='NewWindow'");
documento.writeln("&gt;" + linkname+"&lt;/A&gt;&lt;/TD&gt;");
}
documento.writeln("&lt;TD ALIGN='RIGHT'&gt;\n");
documento.writeln("&lt;a href="javascript:printWindow()" mce_href="javascript:printWindow()"&gt;PRINT&lt;/A&gt; | \n");
if (man_repeat)
documento.writeln("&lt;a href="javascript:parent.RepeatQuiz()" mce_href="javascript:parent.RepeatQuiz()"&gt;REPEAT&lt;/A&gt; | \n");
if (topChartFile!='')
documento.writeln("&lt;a href="/"+topChartFile+"" mce_href="/&amp;quot;+topChartFile+&amp;quot;" TARGET='topchartwin'&gt;Top Chart&lt;/A&gt; | \n");
documento.writeln("&lt;a href="javascript:top.close()" mce_href="javascript:top.close()"&gt;QUIT&lt;/A&gt;\n");
documento.writeln("&lt;/TD&gt;&lt;/TABLE&gt;&lt;/center&gt;&lt;BR&gt;\n");
}
function PrintQuizResults(doc)
{
var deltatime = time - oldtime;
var name;
doc.writeln("&lt;mce:script language='javascript'&gt;&lt;!
\n");
doc.writeln("function printWindow(){\n");
doc.writeln(" var vers = parseInt(navigator.appVersion)\n");
doc.writeln(" if (vers &gt;= 4) window.print()\n");
doc.writeln(" else window.alert('Please use FILE menu, then PRINT...');\n");
doc.writeln("}\n");
doc.writeln("
// &gt;&lt;/mce:script&gt;\n");
if ((showReport==1)&amp;&amp;(dhtmlEnabled==1)) {
doc.writeln("&lt;center&gt;&lt;TABLE WIDTH='"+pageWidth+"%' BORDER=0 BGCOLOR='#D0D0D0'&gt;\n");
doc.writeln("&lt;TD ALIGN='LEFT'&gt;&lt;B&gt;Quiz Result&lt;/B&gt;&lt;/TD&gt;\n");
doc.writeln("&lt;TD ALIGN='RIGHT'&gt;\n");
doc.writeln("&lt;a href="javascript:printWindow()" mce_href="javascript:printWindow()"&gt;PRINT&lt;/A&gt; | \n");
if (man_repeat)
doc.writeln("&lt;a href="javascript:parent.RepeatQuiz()" mce_href="javascript:parent.RepeatQuiz()"&gt;REPEAT&lt;/A&gt; | \n");
if (topChartFile!='')
doc.writeln("&lt;a href="/"+topChartFile+"" mce_href="/&amp;quot;+topChartFile+&amp;quot;" TARGET='topchartwin'&gt;Top Chart&lt;/A&gt; | \n");
doc.writeln("&lt;a href="javascript:top.close()" mce_href="javascript:top.close()"&gt;QUIT&lt;/A&gt;\n");
doc.writeln("&lt;/TD&gt;&lt;/TABLE&gt;&lt;/center&gt;&lt;BR&gt;\n");
}
doc.writeln("&lt;center&gt;&lt;TABLE border=0 WIDTH='"+pageWidth+"%'&gt;&lt;TD ALIGN='LEFT'&gt;&lt;TABLE border=0 cellpadding=1&gt;");
doc.writeln("&lt;TR&gt;&lt;TD bgcolor='#000000'&gt;&lt;TABLE cellpadding=3 border=0 cellspacing=1&gt;&lt;TR&gt;&lt;TD bgcolor=white colspan=2&gt;");
doc.writeln("&lt;TABLE cellpadding=5 border=0 width=100%&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color=000000 face=arial size=4&gt;"+parent.quizTitle+"&lt;/TD&gt;");
doc.writeln("&lt;/TR&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;");
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=white nowrap&gt;&lt;FONT color=cc0000 face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Number of questions : &amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=white&gt;&lt;FONT color=cc0000 face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+(questions-invisibleQuests)+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
if (identityName!="") {
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Candidate name &amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+identityName+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
}
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Right Answers&amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+nc+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Wrong Answers&amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+ns+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Unmarked questions : &amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+falseQuests+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
if (maxtime&gt;0) {
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Time elapsed : &amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+getTimeString(deltatime)+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
}
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;Date : &amp;#160;&amp;#160;&lt;/TD&gt;");
doc.writeln(" &lt;TD bgcolor=ffffdd nowrap&gt;&lt;FONT face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;"+parent.DataToStringa()+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
doc.writeln("&lt;TR&gt;&lt;TD bgcolor=white nowrap&gt;&lt;FONT color=cc0000 face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;MARK&amp;#160;&amp;#160;&lt;/TD&gt;");
if (computeMarkErr==0)
doc.writeln(" &lt;TD bgcolor=white&gt;&lt;FONT color=cc0000 face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;&lt;FONT SIZE=4 FACE='Arial' class='table1'&gt;"+voto+"&lt;/FONT&gt;/"+maxvoto+"&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
else
doc.writeln(" &lt;TD bgcolor=white&gt;&lt;FONT color=cc0000 face=arial size=2 class='table1'&gt;&amp;#160;&amp;#160;&lt;FONT SIZE=2 FACE='Arial' class='table1'&gt;No mark&lt;/FONT&gt;&amp;#160;&amp;#160;&lt;/TD&gt;&lt;/TR&gt;");
doc.writeln("&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TABLE&gt;&lt;/center&gt;");
}
function checkRisposta(checkBox,risp,n)
{
if ( ((checkBox.checked==true) &amp;&amp; (parent.isRightAns(n,risp)==1)) ||
((checkBox.checked==false) &amp;&amp; (parent.isRightAns(n,risp)==0)) )
return 1;
return 0;
}
function checkRispostaBooleana(radioBox,risp,n)
{
if ( ((radioBox[0].checked==true) &amp;&amp; (risp[n]==1)) ||
((radioBox[1].checked==true) &amp;&amp; (risp[n]==0)) )
return 1;
return 0;
}
function checkTrueOrFalse(radioBox)
{
if ( (radioBox[0].checked==false) &amp;&amp;
(radioBox[1].checked==false))
return 0;
return 1;
}
function IncompletedQuest()
{
window.alert("The answer is incompleted. Please, choose all the items");
}
function AnsReport(choice,value,rem,data)
{
this.choice = choice;
this.valuation = value;
this.remark = rem;
this.data = data;
}
function getListOfRightAns(n)
{
var j,value,msg='';
for (j=0;j&lt;allAnsReport[n].length;j++) {
value = allAnsReport[n][j].valuation;
if (value&gt;0)
msg += Lettera(j)+' ';
}
return msg;
}
function getNumOfRightAns(n)
{
var j,value,num=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
value = allAnsReport[n][j].valuation;
if (value&gt;0)
num++;
}
return num;
}
function getListOfSelAns(n)
{
var j,value,msg='';
if (typeOfQuest[n]==3) { return allAnsReport[n][0].choice;
}
for (j=0;j&lt;allAnsReport[n].length;j++) {
choice = allAnsReport[n][j].choice;
if ((typeOfQuest[n]==1)|| (typeOfQuest[n]==101)) { if (choice==1)
msg += Lettera(j)+' ';
}
else if (typeOfQuest[n]==2) { if (choice==1)
msg += 'V ';
else if (choice==0)
msg += 'F ';
}
else if (typeOfQuest[n]==4) { msg += choice+",";
}
else if (typeOfQuest[n]==5) { msg += choice[0] + "-" + choice[1] + ", ";
}
}
return msg;
}
function initListOfRemark(n)
{
var j,i,rem,value;
i=0;
this.length=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
choice = allAnsReport[n][j].choice;
rem = allAnsReport[n][j].remark;
if (choice==1) {
this[i] = rem;
i++;
}
}
this.length = i;
}
function getListOfMistake(n)
{
var j,choice,value,msg='';
for (j=0;j&lt;allAnsReport[n].length;j++) {
if ((typeOfQuest[n]!=4)&amp;&amp;(typeOfQuest[n]!=5)) {
if (!getGuessAnsN(n,j))
msg += Lettera(j)+' ';
}
else if (typeOfQuest[n]==4) {
if (!getGuessFillGapN(n,j))
msg += allAnsReport[n][j].choice + ' , ';
}
else if (typeOfQuest[n]==5) {
if (!getGuessMatchN(n,j))
msg += allAnsReport[n][j].choice[0] + ' - ' + allAnsReport[n][j].choice[1] + ' , ';
}
}
return msg;
}
function getGuessAns(n)
{
var j,guess=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
if (getGuessAnsN(n,j)) guess++;
}
return guess;
}
function getGuessAnsN(n,m)
{
var value,choice,data;
value = allAnsReport[n][m].valuation;
choice = allAnsReport[n][m].choice;
data = allAnsReport[n][m].data;
value += data;
if (((value&gt;0)&amp;&amp;(choice==1)) || ((value&lt;0)&amp;&amp;(choice==0)))
return 1;
return 0;
}
function getScore(n)
{
var j,choice,value,data,
score=0,nchoice=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
choice = allAnsReport[n][j].choice;
value = allAnsReport[n][j].valuation;
data = allAnsReport[n][j].data;
if (choice==1) {
score += value;
nchoice++;
}
else
score += data;
}
if (nchoice==0)
return omitPoint[n];
return score;
}
function getGuessMatch(n)
{
var j,guess=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
if (getGuessMatchN(n,j)==1) guess++;
}
return guess;
}
function getGuessMatchN(n,m)
{
var i,j,value,choice;
var str1,str2,str3;
value = allAnsReport[n][m].valuation;
choice = allAnsReport[n][m].choice;
str1 = choice[0] + choice[1];
for (i=0; i&lt;value.length; i++) {
str2 = choice[0] + value[i];
if (str1.toLowerCase()==str2.toLowerCase()) {
for (j=0; j&lt;allAnsReport[n].length; j++) {
str3 = allAnsReport[n][j].choice[0] + allAnsReport[n][j].choice[1];
if (str1.toLowerCase()==str3.toLowerCase()) {
if (j==m)
return 1; else
return -1; }
}
}
}
return 0;
}
function getGuessFillGap(n)
{
var j,guess=0;
for (j=0;j&lt;allAnsReport[n].length;j++) {
if (getGuessFillGapN(n,j)==1) guess++;
}
return guess;
}
function trim(str) {
var i,iStart,iStop;
for (i=0; i&lt;str.length; i++) {
if (str.charAt(i)!=' ')
break;
}
iStart = i;
for (i=str.length-1; i&gt;=0; i ) {
if (str.charAt(i)!=' ')
break;
}
iStop = i;
if ((iStart!=0)||(iStop!=str.length-1))
return str.substring(iStart,iStop+1);
return str;
}
function getGuessFillGapN(n,m)
{
var i,j,value,choice;
var str1,str2;
choice = allAnsReport[n][m].choice;
value = allAnsReport[n][m].valuation;
str1 = trim(choice.toLowerCase());
for (i=0; i&lt;value.length; i++) {
str2 = trim(value[i].toLowerCase());
if (str1==str2)
return 1;
}
return 0;
}
function getNumAns(n)
{
return allAnsReport[n].length;
}
function doValuate(n) {
if (typeOfQuest[n]==1) doValuateMultiAns(n);
else if (typeOfQuest[n]==101) doValuateWithPoints(n);
else if (typeOfQuest[n]==2) doValuateBoolAns(n);
else if (typeOfQuest[n]==3) doValuateOpenAns(n);
else if (typeOfQuest[n]==4) doValuateFillGap(n);
else if (typeOfQuest[n]==5) doValuateMatching(n);
}
function doValuateMultiAns(n)
{
nScore[n] = getGuessAns(n);
maxScore[n] = getNumAns(n);
if (nScore[n]==maxScore[n])
valid[n]=1; else valid[n]=-1;
}
function doValuateWithPoints(n)
{
nScore[n] = getScore(n);
maxScore[n] = ConvertPointToMark(n,nScore[n]);
valid[n]=5;
}
function doValuateBoolAns(n)
{
nScore[n] = getGuessAns(n);
maxScore[n] = getNumAns(n);
if (nScore[n]==maxScore[n])
valid[n]=1;
else if (nScore[n]==0)
valid[n]=-1;
else
valid[n]=3;
}
function doValuateFillGap(n)
{
nScore[n] = getGuessFillGap(n);
maxScore[n] = getNumAns(n);
if (nScore[n]==maxScore[n])
valid[n]=1;
else if (nScore[n]==0)
valid[n]=-1;
else
valid[n]=3;
}
function doValuateMatching(n)
{
nScore[n] = getGuessMatch(n);
maxScore[n] = getNumAns(n);
if (nScore[n]==maxScore[n])
valid[n]=1;
else if (nScore[n]==0)
valid[n]=-1;
else
valid[n]=3;
}
function doValuateOpenAns(n)
{
nScore[n] = 0;
maxScore[n] = 0;
valid[n] = 2;
}
function PrintReport(documento)
{
var i,j,n=1,k,l,m,isGuess;
var choice,value,data;
var half_index,index13,index23,index14,index34,col_width;
half_index = Math.ceil(questions/2);
index13 = Math.ceil(questions/3);
index23 = Math.ceil(2*questions/3);
index14 = Math.ceil(questions/4);
index34 = Math.ceil(3*questions/4);
col_width = Math.floor(100 / ncols_report);
documento.writeln("&lt;P&gt;&lt;center&gt;&lt;TABLE WIDTH='"+pageWidth+"%' BORDER=0&gt;");
for (k=0;k&lt;questions;k++) {
if ((k==0)&amp;&amp;(ncols_report==1)) {
documento.writeln("&lt;TD&gt;\n");
}
if ((k==0)&amp;&amp;(ncols_report&gt;=2)) {
documento.writeln("&lt;TD WIDTH='"+col_width+"%' VALIGN='top'&gt;\n");
}
if ((k==half_index)&amp;&amp;((ncols_report==2)||(ncols_report==4))) {
documento.writeln("&lt;/TD&gt;&lt;TD WIDTH='"+col_width+"%' VALIGN='top'&gt;");
}
if (ncols_report==3) {
if ((k==index13)||(k==index23)) {
documento.writeln("&lt;/TD&gt;&lt;TD WIDTH='33%' VALIGN='top'&gt;");
}
}
if (ncols_report==4) {
if ((k==index14)||(k==index34)) {
documento.writeln("&lt;/TD&gt;&lt;TD WIDTH='25%' VALIGN='top'&gt;");
}
}
i = ordineDomande[k];
if (valid[i]==4)
continue;
documento.writeln("&lt;B&gt;&lt;FONT SIZE=+1 class='qstId'&gt;"+n+"&lt;/FONT&gt;&lt;/B&gt;&lt;B&gt; "+qstHead[i]+"&lt;/B&gt;&lt;BR&gt;");
n++;
documento.writeln("&lt;I&gt;");
if (valid[i]==1)
documento.writeln("Correct answer&lt;BR&gt;");
else if (valid[i]==-1)
documento.writeln("Wrong answer&lt;BR&gt;");
else if (valid[i]==2)
documento.writeln("Question not valuated&lt;BR&gt;");
else if (valid[i]==3) {
if (typeOfQuest[i]==2)
documento.writeln("Right sentences "+nScore[i]+" on "+maxScore[i]+"&lt;BR&gt;");
else if (typeOfQuest[i]==4)
documento.writeln("Guess words "+nScore[i]+" on "+maxScore[i]+"&lt;BR&gt;");
else if (typeOfQuest[i]==5)
documento.writeln("Matching "+nScore[i]+" on "+maxScore[i]+"&lt;BR&gt;");
}
else if (valid[i]==5) {
documento.write("scores "+nScore[i]);
if (groups[i]==0)
documento.writeln(" (MARK "+maxScore[i]+")&lt;BR&gt;");
else if (groups[i]==1)
documento.writeln("&lt;BR&gt;Scores added with the previous question&lt;BR&gt;");
else if (groups[i]==2)
documento.writeln("&lt;BR&gt;MARK (computes from the sum of scores of next questions): "+maxScore[i]+"&lt;BR&gt;");
}
documento.writeln("&lt;/I&gt;");
if (valid[i]==2) {
documento.write("&lt;P&gt;"+allAnsReport[i][0].choice+"&lt;/P&gt;");
continue;
}
documento.writeln("&lt;BR&gt;");
documento.writeln("&lt;TABLE BORDER=0 WIDTH='"+pageWidth+"%'&gt;");
for (j=0;j&lt;allAnsReport[i].length;j++) {
if (typeOfQuest[i]==4)
isGuess = getGuessFillGapN(i,j);
else if (typeOfQuest[i]==5)
isGuess = (getGuessMatchN(i,j)==1);
else
isGuess = getGuessAnsN(i,j);
if (isGuess)
documento.write(" &lt;TR&gt;&lt;TD WIDTH=30&gt;&lt;IMG SRC=""+mediaDir+"/smile.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/smile.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
else
documento.write(" &lt;TR&gt;&lt;TD WIDTH=30&gt;&lt;IMG SRC=""+mediaDir+"/ko.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/ko.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
documento.write("&lt;TD WIDTH=30&gt; &lt;FONT FACE='Arial'&gt;");
documento.write(Lettera(j));
documento.write("&lt;/FONT&gt; &lt;/TD&gt;");
choice = allAnsReport[i][j].choice;
if (typeOfQuest[i]==2) {
documento.write("&lt;TD WIDTH=50&gt; V ");
if (choice==1)
documento.write("&lt;IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/ok.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
else
documento.write("&lt;IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/square.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
documento.write("&lt;TD WIDTH=50&gt; F ");
if (choice==0)
documento.write("&lt;IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/ok.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
else
documento.write("&lt;IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/square.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
}
else if (typeOfQuest[i]==4) {
if (getGuessFillGapN(i,j))
documento.write("&lt;TD&gt;"+choice+"&lt;/TD&gt;");
else {
documento.write("&lt;TD&gt;&lt;S&gt;"+choice+"&lt;/S&gt; &lt;IMG SRC=""+mediaDir+"/arrow.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/arrow.gif" ALIGN='CENTER'&gt; ");
for (l=0; l&lt;allAnsReport[i][j].valuation.length-1; l++)
documento.write(allAnsReport[i][j].valuation[l]+ " , ");
documento.write(allAnsReport[i][j].valuation[l]);
documento.write("&lt;/TD&gt;");
}
}
else if (typeOfQuest[i]==5) {
m = getGuessMatchN(i,j);
if (m==1) documento.write("&lt;TD&gt;"+choice[0]+" - "+choice[1]+"&lt;/TD&gt;");
else if (m==0) {
documento.write("&lt;TD&gt;"+choice[0]+" - ");
documento.write("&lt;S&gt;"+choice[1]+"&lt;/S&gt;");
documento.write("&lt;IMG SRC=""+mediaDir+"/arrow.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/arrow.gif" ALIGN='CENTER'&gt; ");
for (l=0; l&lt;allAnsReport[i][j].valuation.length-1; l++)
documento.write(allAnsReport[i][j].valuation[l]+ " , ");
documento.write(allAnsReport[i][j].valuation[l]);
documento.write("&lt;/TD&gt;");
}
else {
documento.write("&lt;TD&gt;&lt;S&gt;"+choice[0]+" - "+choice[1]+"&lt;/S&gt;");
}
}
else {
if (choice==1)
documento.write("&lt;TD WIDTH=30&gt;&lt;IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/ok.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
else
documento.write("&lt;TD WIDTH=30&gt;&lt;IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&amp;quot;+mediaDir+&amp;quot;/square.gif" ALIGN='CENTER'&gt;&lt;/TD&gt;");
}
documento.writeln("&lt;TD&gt;");
if (valid[i]==5) {
value = allAnsReport[i][j].valuation;
data = allAnsReport[i][j].data;
documento.write(" ("+value+") ");
if (data!=0)
documento.write(" ("+data+") ");
}
if (choice==1)
documento.write(allAnsReport[i][j].remark);
documento.writeln("&lt;/TD&gt;&lt;/TR&gt;");
}
documento.writeln("&lt;/TABLE&gt;&lt;BR&gt;");
}
documento.writeln("&lt;/TD&gt;&lt;/TABLE&gt;&lt;/center&gt;");
}
function init_IntArray(n) {
var i;
this.length=n;
for (i=0; i&lt;n; i++)
this[i]=-1;
}
function rand(n) {
return Math.floor(Math.random()*n);
}
function determinaOrdineIniziale(nvett) {
var i,count,n;
var nuovoPezzo;
this.length=nvett;
for (i=0; i&lt;nvett; i++)
this[i]=-1;
count=0;
while (count&lt;nvett) {
n = rand(nvett);
nuovoPezzo = 1;
for (i=0; i&lt;count; i++) {
if (this[i]==n)
nuovoPezzo = 0;
}
if (nuovoPezzo==1) {
this[count]=n;
count++;
}
}
}
function creaMatching(doc,lista1,lista2,ordine1, ordine2 , nomeSelect)
{
var i,n;
var lettera;
for (n=0; n&lt;lista1.length; n++) {
lettera = Lettera(n);
doc.writeln("&lt;TD WIDTH="+pageWidth+"% NOWRAP&gt;");
doc.writeln("&lt;SELECT NAME='"+nomeSelect+"'&gt;");
for (i=0; i&lt;lista1.length; i++) {
if (n==i)
doc.writeln("&lt;OPTION SELECTED&gt;"+lista1[ordine1[i]]);
else
doc.writeln("&lt;OPTION&gt;"+lista1[ordine1[i]]);
}
doc.writeln("&lt;/SELECT&gt;");
doc.writeln("&lt;SELECT NAME='"+nomeSelect+"'&gt;");
for (i=0; i&lt;lista2.length; i++) {
if (n==i)
doc.writeln("&lt;OPTION SELECTED&gt;"+lista2[ordine2[i]]);
else
doc.writeln("&lt;OPTION&gt;"+lista2[ordine2[i]]);
}
doc.writeln("&lt;/SELECT&gt;");
doc.writeln("&lt;/TD&gt;");
doc.writeln("&lt;TR&gt;");
}
}
function getSelezione(obj) {
var i;
for (i=0; i&lt;obj.options.length; i++) {
if (obj.options[i].selected)
return i;
}
return -1;
}
function MyDialog(dlgId,filename,x,y) {
this.dlgId = dlgId;
this.filename = filename;
this.x = x;
this.y = y;
this.opened = 0;
this.handle = 0;
}
function CreateDialog(dlgId,filename,x,y) {
var my_dialog;
var i,found=0;
for (i=0; i&lt;nDlgs; i++) {
if (dlgList[i].dlgId==dlgId) { found=1; break; }
}
if (found==0) {
my_dialog = new MyDialog(dlgId,filename,x,y);
dlgList[nDlgs] = my_dialog;
nDlgs++;
}
else {
my_dialog = dlgList[i];
}
return my_dialog;
}
function ManageDialog(myDialog) {
var handle;
var mode = '';
dlgId = 'my'+myDialog.filename;
if (myDialog.opened==0) {
mode = 'menubar=no,status=no,location=no';
mode += ',width='+myDialog.x;
mode += ',height='+myDialog.y;
handle = window.open(myDialog.filename,myDialog.dlgId,mode);
myDialog.handle = handle;
myDialog.opened = 1;
}
else {
handle = myDialog.handle;
}
return handle;
}
function UnmanageDialog(dlgId) {
var i;
for (i=0; i&lt;nDlgs; i++) {
if (dlgList[i].dlgId==dlgId) {
dlgList[i].handle.close();
dlgList[i].opened = 0;
break;
}
}
}
function UnmanageAllDialogs() {
var i;
for (i=0; i&lt;nDlgs; i++) {
UnmanageDialog(dlgList[i].dlgId);
}
}
function ASCIItoInt(c)
{
var i,car;
for (i=32;i&lt;256;i++) {
car = '%'+dec_to_hex(i);
if (c==unescape(car))
return i;
}
return 0;
}
function InttoASCII(n)
{
var car;
if ((n&lt;0)||(n&gt;255))
return "NULL";
car = '%'+dec_to_hex(n);
return unescape(car);
}
function DecodeString(msg)
{
var i,j,n;
var decode_msg=""; var num; var car;
n = keyword.length;
j=0;
for(i=0;i&lt;msg.length;i+=3) {
num = eval(msg.substring(i,i+3))-keycode[j%n];
if ((num&lt;32)||(num&gt;127)) {
PrintWrongKeyword();
return "";
}
car = '%'+dec_to_hex(num);
decode_msg+=unescape(car);
j++;
}
return decode_msg;
}
function DecodeNumber(i,n,minNum,maxNum)
{
var num,lung;
lung = keyword.length;
num=i-keycode[n%lung];
if ((num&lt;minNum)||(num&gt;maxNum))
PrintWrongKeyword();
return num;
}
function CodeString(msg)
{
var i,n;
var code_msg=""; var c=0;
n = keyword.length;
for (i=0;i&lt;msg.length;i++) {
/* range codice ASCII : 32 - 127 */
if (ASCIItoInt(msg.charAt(i))&lt;32)
c = 32 + keycode[i%n];
else if (ASCIItoInt(msg[i])&gt;127)
c = 127 + keycode[i%n];
else
c = ASCIItoInt(msg.charAt(i)) + keycode[i%n];
if (c&lt;10)
code_msg += " "+c;
else if (c&lt;100)
code_msg += " "+c;
else
code_msg += ""+c;
}
return code_msg;
}
function MakeKeyCode()
{
var i,num;
var car;
for (i=0;i&lt;keyword.length;i++) {
car = keyword.charAt(i);
num = ASCIItoInt(car);
if ((car&gt;='a')&amp;&amp;(car&lt;='z')) {
keycode[i]=num-97;
continue;
}
if ((car&gt;='A')&amp;&amp;(car&lt;='Z')) {
keycode[i]=num-65;
continue;
}
keycode[i]=0;
}
}
function GetSoundName(n)
{
if ((valid[n]==-1)||(maxScore[n]==minvoto))
return parent.errSound;
if ((valid[n]==1)||(maxScore[n]==maxvoto))
return parent.okSound;
if ((valid[n]==3)||(valid[n]==5))
return parent.warnSound;
return parent.warnSound;
}
function Timer()
{
var delta;
if (ctmnow) {
clearTimeout(ctmnow);
ctmnow=0;
}
cnewdt = new Date();
time = Math.floor(cnewdt.getTime()/1000);
delta = maxtime-(time-oldtime);
if ((end_test==0)&amp;&amp;(oldtime!=time))
SetClock(getTimeString(delta));
if ((delta&lt;=0)&amp;&amp;(end_test==0)) {
window.alert("The time is over!");
end_test=1;
EndQuiz();
}
ctmnow=setTimeout("Timer()",1000);
}
function PrintOpenAnswer(n,outMsg) {
outMsg.value = "Answer completed";
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("You have answered to all 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 = "&lt;FONT size=5 face='Arial' color='#696969'&gt;" + msg + "&lt;/FONT&gt;";
if (nScore[n]&lt;getNumAns(n)) {
msg2 = "Wrong Answers : " + getListOfMistake(n);
textField.value += " ; " + msg2;
explan[0] = msg2;
}
PrintAnswerOnTopFrame(msgFormat,explan,GetSoundName(n));
}
else
textField.value = "Selected answer";
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("You have answered to all questions");
EndQuiz();
}
return end_test;
}
function PrintAnswer(n,textField)
{
var msg;
var explan = new initListOfRemark(n);
if (silent==1) {
textField.value = "Selected answer";
}
else {
if (valid[n]==1) {
textField.value = "Correct answer";
msg = "&lt;FONT size=5 face='Arial' color='#000080'&gt;Good ! Right answer&lt;/FONT&gt;";
}
else {
msg = "Wrong! The correct answer was " + getListOfRightAns(n);
textField.value = msg;
msg = "&lt;FONT size=5 face='Arial' color='#A52A2A'&gt;" + msg + "&lt;/FONT&gt;";
}
PrintAnswerOnTopFrame(msg,explan,GetSoundName(n));
}
end_test = CountAnswers();
PrintStatusBar();
PrintBottomFrame();
if (end_test==1) {
window.status = "";
window.alert("You have answered to all questions");
EndQuiz();
}
return end_test;
}
function PrintQuestionScore(n,textField)
{
var msg,msgFormat;
var explan = new initListOfRemark(n);
if (silent==0) {
msg = "Score : " + nScore[n];
if (groups[n]==0) msg += " (MARK "+maxScore[n]+")";
textField.value = msg;
msgFormat = "&lt;FONT size=5 face='Arial' color='#000080'&gt;" + msg + "&lt;/FONT&gt;";
if (getGuessAns(n)&lt;getNumAns(n))
msgFormat += "&lt;BR&gt;The correct answer was " + getListOfRightAns(n);
PrintAnswerOnTopFrame(msgFormat,explan,GetSoundName(n));
}
else
textField.value = "Selected answer";
end_test = CountAnswers();
PrintBottomFrame();
PrintStatusBar();
if (end_test==1) {
window.status = "";
window.alert("You have answered to all questions");
EndQuiz();
}
return end_test;
}
function PrintBottomFrame()
{
var msg;
parent.frames[2].document.clear();
parent.frames[2].document.open();
PrintOpenHTML(2,"",1);
parent.frames[2].document.writeln ("&lt;body BGCOLOR='"+parent.bkCol2+"' BACKGROUND='"+parent.image2+"' BGCOLOR='"+parent.bkCol2+"' TOPMARGIN='0' LEFTMARGIN='0' marginheight='0' marginwidth='0'&gt;");
parent.frames[2].document.writeln ("&lt;form name='domanda'&gt;&lt;table width='100%'&gt;&lt;TR&gt;");
if (maxtime&gt;0) {
parent.frames[2].document.writeln ("&lt;td width='20%' align='CENTER'&gt;&lt;INPUT TYPE='TEXT' SIZE=10 NAME='clock'&gt;&lt;/TD&gt;");
}
else {
parent.frames[2].document.writeln ("&lt;td width='20%'&gt;&lt;/TD&gt;");
}
if (silent==0) {
msg="&lt;td width='23%' align='CENTER'&gt;&lt;FONT FACE='Arial' SIZE='2'&gt;&lt;B&gt;right&lt;/B&gt; : "+nc+"&lt;/FONT&gt;&lt;/TD&gt;";
msg+="&lt;td width='23%' align='CENTER'&gt;&lt;FONT FACE='Arial' SIZE='2'&gt;&lt;B&gt;wrong&lt;/B&gt; : "+ns+"&lt;/FONT&gt;&lt;/TD&gt;";
msg+="&lt;td width='23%' align='CENTER'&gt;&lt;FONT FACE='Arial' SIZE='2'&gt;&lt;B&gt;to do&lt;/B&gt; : "+nr+"&lt;/FONT&gt;&lt;/TD&gt;";
}
else {
msg="&lt;td width='69%' align='LEFT'&gt;to be answered :&lt;FONT SIZE=+1&gt;"+nr+"&lt;/FONT&gt;&lt;/TD&gt;";
}
if (quizRetire==1)
msg+="&lt;td width='11%' align='RIGHT'&gt;&lt;INPUT TYPE='BUTTON' VALUE='Retire' OnClick='parent.Retire()'&gt;&lt;/TD&gt;";
else
msg+="&lt;td width='11%'&gt;&lt;/TD&gt;";
parent.frames[2].document.writeln (msg+"&lt;/TR&gt;&lt;/TABLE&gt;&lt;/FORM&gt;&lt;/body&gt;&lt;/html&gt;");
parent.frames[2].document.close();
}
function PrintWrongKeyword()
{
parent.frames[0].document.clear();
PrintOpenHTML(0,"",1);
parent.frames[0].document.writeln ("&lt;body BGCOLOR='"+parent.bkCol2+"'&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
parent.frames[1].document.clear();
parent.frames[1].document.open();
PrintOpenHTML(1,"",1);
parent.frames[1].document.writeln ("&lt;body BGCOLOR='"+parent.bkCol1+"'&gt;");
parent.frames[1].document.writeln("&lt;CENTER&gt;&lt;FONT SIZE=6 FACE='Arial' COLOR='#FF0000'&gt;Watch out!&lt;/FONT&gt;&lt;BR&gt;");
parent.frames[1].document.writeln ("&lt;FONT SIZE=+2&gt;The keyword isn't correct&lt;/FONT&gt;&lt;BR&gt;");
parent.frames[1].document.writeln ("Unable to continue the quiz&lt;BR&gt;");
parent.frames[1].document.writeln ("For information, contact the quiz's author&lt;BR&gt;");
parent.frames[1].document.writeln("&lt;P&gt;&lt;INPUT TYPE='BUTTON' VALUE='QUIT' OnClick='top.close()'&gt;");
parent.frames[1].document.writeln("&lt;/CENTER&gt;");
parent.frames[1].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[1].document.close();
PrintCopyright(0);
}
function PrintNoReload()
{
parent.frames[0].document.clear();
PrintOpenHTML(0,"",1);
parent.frames[0].document.writeln ("&lt;body BGCOLOR='"+parent.bkCol2+"'&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
parent.frames[1].document.clear();
parent.frames[1].document.open();
PrintOpenHTML(1,"",1);
parent.frames[1].document.writeln ("&lt;body BGCOLOR='"+parent.bkCol1+"'&gt;");
parent.frames[1].document.writeln("&lt;CENTER&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT SIZE=6 FACE='Arial' COLOR='#FF0000'&gt;Watch out!&lt;/FONT&gt;&lt;BR&gt;");
parent.frames[1].document.writeln ("&lt;FONT SIZE=+2&gt;Reload of quiz is not allowed&lt;/FONT&gt;&lt;BR&gt;");
parent.frames[1].document.writeln ("Unable to start the quiz&lt;BR&gt;");
parent.frames[1].document.writeln ("For information, contact the quiz's author&lt;BR&gt;");
parent.frames[1].document.writeln("&lt;P&gt;&lt;INPUT TYPE='BUTTON' VALUE='QUIT' OnClick='top.close()'&gt;");
parent.frames[1].document.writeln("&lt;/CENTER&gt;");
parent.frames[1].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[1].document.close();
PrintCopyright(0);
}
function PrintResults()
{
parent.frames[1].document.close();
parent.frames[1].document.clear();
parent.frames[1].document.open();
PrintOpenHTML(1,"Quiz Result",0);
parent.frames[1].document.writeln("&lt;mce:style&gt;&lt;!
\n");
parent.frames[1].document.writeln("TD,B,BODY {font-family:Arial; font-size:10pt }\n");
parent.frames[1].document.writeln(".table1 {font-family:Arial; font-size:10pt; font-weight:bold } \n");
parent.frames[1].document.writeln(".qstId {font-family:courier; font-size:16pt; background:#404040; color:#FFFFFF }\n");
parent.frames[1].document.writeln("
&gt;&lt;/mce:style&gt;&lt;style mce_bogus="1"&gt;\n");
parent.frames[1].document.writeln("TD,B,BODY {font-family:Arial; font-size:10pt }\n");
parent.frames[1].document.writeln(".table1 {font-family:Arial; font-size:10pt; font-weight:bold } \n");
parent.frames[1].document.writeln(".qstId {font-family:courier; font-size:16pt; background:#404040; color:#FFFFFF }\n");
parent.frames[1].document.writeln("&lt;/style&gt;\n");
parent.frames[1].document.writeln("&lt;/head&gt;");
parent.frames[1].document.writeln("&lt;body BACKGROUND='"+image+"' BGCOLOR='"+bkCol1+"'&gt;");
if (valutaQuiz==1) {
PrintQuizResults(parent.frames[1].document);
if (showReport==1)
PrintReport(parent.frames[1].document);
PrintLinkBack(parent.frames[1].document);
}
else {
parent.frames[1].document.writeln("&lt;P&gt;&lt;CENTER&gt;");
parent.frames[1].document.writeln(finalMess);
parent.frames[1].document.writeln("&lt;/CENTER&gt;");
PrintLinkBack(parent.frames[1].document);
}
parent.frames[1].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[1].document.close();
window.status = "";
}
function PrintResultOnTopFrame ()
{
parent.frames[0].document.clear();
parent.frames[0].document.open();
PrintOpenHTML(0,"Quiz Result",1);
parent.frames[0].document.writeln ("&lt;body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'&gt;");
parent.frames[0].document.writeln("&lt;CENTER&gt;&lt;FONT SIZE=4 FACE='Arial'&gt;&lt;B&gt;&lt;I&gt;Quiz Result&lt;/I&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/CENTER&gt;");
parent.frames[0].document.writeln ("&lt;/FONT&gt;&lt;/CENTER&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
}
function PrintCopyright(sfondo)
{
parent.frames[2].document.clear();
parent.frames[2].document.open();
PrintOpenHTML(2,"Info",1);
if (sfondo==1)
parent.frames[2].document.writeln ("&lt;body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'&gt;");
else
parent.frames[2].document.writeln ("&lt;body BGCOLOR='"+bkCol2+"'&gt;");
if (printCpRg==1) {
parent.frames[2].document.writeln("&lt;CENTER&gt;");
parent.frames[2].document.writeln("&lt;FONT SIZE=1 FACE='Arial, Helvetica' COLOR='#666666'&gt;");
parent.frames[2].document.writeln("This quiz was created ");
if (parent.author!='')
parent.frames[2].document.writeln("by &lt;B&gt;"+parent.author+"&lt;/B&gt; ");
parent.frames[2].document.writeln("with &lt;A HREF="http://"+qmakeURL+"" mce_HREF="http://&amp;quot;+qmakeURL+&amp;quot;"&gt;&lt;B&gt;"+qmakeProgName+" "+qmakeVers+"&lt;/B&gt;&lt;/A&gt;");
parent.frames[2].document.writeln ("&lt;/CENTER&gt;&lt;/FONT&gt;");
}
parent.frames[2].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[2].document.close();
}
function showTooltip (strTooltip) {
parent.frames[0].document.clear();
PrintOpenHTML(0,"",1);
parent.frames[0].document.writeln ("&lt;body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'&gt;");
parent.frames[0].document.writeln ("&lt;CENTER&gt;");
parent.frames[0].document.writeln ("&lt;I&gt;Hint&lt;/I&gt;:&lt;BR&gt;"+strTooltip);
parent.frames[0].document.writeln ("&lt;/CENTER&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
}
function clearTooltip () {
setTimeout(deleteTooltip,2000);
}
function deleteTooltip () {
parent.frames[0].document.clear();
PrintOpenHTML(0,"",1);
parent.frames[0].document.writeln ("&lt;body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'&gt;");
parent.frames[0].document.writeln ("&lt;/body&gt;&lt;/html&gt;");
parent.frames[0].document.close();
}
function RepeatQuiz() {
n_repeat++;
parent.frames[2].location.href = filename + '3.htm';
if (!questSlide) {
parent.frames[1].location.href = filename + '1.htm';
}
else {
parent.frames[1].location.href = filename + 'Q1.htm';
}
}
function AskPrintQuiz() {
if (window.confirm("Print quiz ?")) {
window.print();
}
}
function completeInitValuate() {
if (valid[0]==0) {
parent.allAnsReport[0] = new parent.frames[1].initValuate1();
parent.doValuate(0,parent.frames[1].document.domanda.score1,parent.frames[1].document.domanda.risposta1);
}
if (valid[1]==0) {
parent.allAnsReport[1] = new parent.frames[1].initValuate2();
parent.doValuate(1,parent.frames[1].document.domanda.score2,parent.frames[1].document.domanda.risposta2);
}
if (valid[2]==0) {
parent.allAnsReport[2] = new parent.frames[1].initValuate3();
parent.doValuate(2,parent.frames[1].document.domanda.score3,parent.frames[1].document.domanda.risposta3);
}
if (valid[3]==0) {
parent.allAnsReport[3] = new parent.frames[1].initValuate4();
parent.doValuate(3,parent.frames[1].document.domanda.score4,parent.frames[1].document.domanda.risposta4);
}
if (valid[4]==0) {
parent.allAnsReport[4] = new parent.frames[1].initValuate5();
parent.doValuate(4,parent.frames[1].document.domanda.score5,parent.frames[1].document.domanda.risposta5);
}
if (valid[5]==0) {
parent.allAnsReport[5] = new parent.frames[1].initValuate6();
parent.doValuate(5,parent.frames[1].document.domanda.score6,parent.frames[1].document.domanda.risposta6);
}
if (valid[6]==0) {
parent.allAnsReport[6] = new parent.frames[1].initValuate7();
parent.doValuate(6,parent.frames[1].document.domanda.score7,parent.frames[1].document.domanda.risposta7);
}
if (valid[7]==0) {
parent.allAnsReport[7] = new parent.frames[1].initValuate8();
parent.doValuate(7,parent.frames[1].document.domanda.score8,parent.frames[1].document.domanda.risposta8);
}
if (valid[8]==0) {
parent.allAnsReport[8] = new parent.frames[1].initValuate9();
parent.doValuate(8,parent.frames[1].document.domanda.score9,parent.frames[1].document.domanda.risposta9);
}
if (valid[9]==0) {
parent.allAnsReport[9] = new parent.frames[1].initValuate10();
parent.doValuate(9,parent.frames[1].document.domanda.score10,parent.frames[1].document.domanda.risposta10);
}
if (valid[10]==0) {
parent.allAnsReport[10] = new parent.frames[1].initValuate11();
parent.doValuate(10,parent.frames[1].document.domanda.score11,parent.frames[1].document.domanda.risposta11);
}
if (valid[11]==0) {
parent.allAnsReport[11] = new parent.frames[1].initValuate12();
parent.doValuate(11,parent.frames[1].document.domanda.score12,parent.frames[1].document.domanda.risposta12);
}
if (valid[12]==0) {
parent.allAnsReport[12] = new parent.frames[1].initValuate13();
parent.doValuate(12,parent.frames[1].document.domanda.score13,parent.frames[1].document.domanda.risposta13);
}
if (valid[13]==0) {
parent.allAnsReport[13] = new parent.frames[1].initValuate14();
parent.doValuate(13,parent.frames[1].document.domanda.score14,parent.frames[1].document.domanda.risposta14);
}
if (valid[14]==0) {
parent.allAnsReport[14] = new parent.frames[1].initValuate15();
parent.doValuate(14,parent.frames[1].document.domanda.score15,parent.frames[1].document.domanda.risposta15);
}
if (valid[15]==0) {
parent.allAnsReport[15] = new parent.frames[1].initValuate16();
parent.doValuate(15,parent.frames[1].document.domanda.score16,parent.frames[1].document.domanda.risposta16);
}
if (valid[16]==0) {
parent.allAnsReport[16] = new parent.frames[1].initValuate17();
parent.doValuate(16,parent.frames[1].document.domanda.score17,parent.frames[1].document.domanda.risposta17);
}
if (valid[17]==0) {
parent.allAnsReport[17] = new parent.frames[1].initValuate18();
parent.doValuate(17,parent.frames[1].document.domanda.score18,parent.frames[1].document.domanda.risposta18);
}
}
function ConvertPointToMark(n,points) {
return 0;
}
function CountAnswers() {
var ratio;
var nexcl=0;
nc = 0;
ns = 0;
nr = questions;
for (var i=0;i&lt;questions;i++) {
if (valid[i]==1) nc++;
else if (valid[i]==-1) ns++;
else if (valid[i]==3) {
ratio = 100 * nScore[i] / maxScore[i];
if (ratio&gt;=60) nc++;
else ns++;
}
else if (valid[i]==5) {
ratio = 100 * maxScore[i] / maxvoto;
if (ratio&gt;=60) nc++;
else ns++;
}
if (valid[i]!=0) nr ;
if ((valid[i]==2)||(valid[i]==4)) nexcl++;
}
if (nr==0) return 1;
return 0;
}
function EndQuiz() {
completeInitValuate();
FinalActions();
}
function FinalActions() {
voto = ComputeMarks();
PrintResultOnTopFrame();
PrintResults();
PrintCopyright(1);
}
function SetClock(timeStr) {
parent.frames[2].document.domanda.clock.value = timeStr;
}
function init_valid()
{
for (var i=0;i&lt;questions;i++) {
valid[i]=0;
pesi[i]=0;
nScore[i]=0;
maxScore[i]=0;
}
nc = 0;
ns = 0;
nr = questions-0;
voto = 0;
computeMarkErr = 0;
window.status='';
}
function initShortQuestion() {
qstHead[0]="Deuteronomy 4:2 commands us not to diminish Gods commands. By Jesus day, what ...";
qstHead[1]="Jesus cited the Pharisees on numerous occassions for errors in doctrine. Circle...";
qstHead[2]="Moses in the Law said that righteousness was imputed by what in Deuteronomy 6:25...";
qstHead[3]="In Genesis 15:6, in normal Hebrew syntax, did Moses teach that Abraham reckoned ...";
qstHead[4]="Was the covenant of God with Abraham and his heirs first made in Genesis 15:6 or...";
qstHead[5]="What was the condition that God put on the covenant with Abraham? (JWO:xxix, App...";
qstHead[6]="God announced to Isaac after Abraham died that Abraham had kept his side of the ...";
qstHead[7]="John MacArthur says Jesus said “little” about justification. (JWO: 513.) But the...";
qstHead[8]="Jesus said a believer in Him who was ensnared had two choices in Mark 9:42-47. T...";
qstHead[9]="John tells us that some rulers “believed” in Jesus but were too afraid to “confe...";
qstHead[10]="What did Jesus and John the Baptist both say about a tree that continued to lack...";
qstHead[11]="What do Christian and non-Christian Hebrew scholars think about the reliability ...";
qstHead[12]="Which person listed below did Habakkuk 2:4 in the original Hebrew say was just? ...";
qstHead[13]="What word choice did the Septuagint use for the Hebrew word for faithfulness in ...";
qstHead[14]="The Prophets taught that atonement was unavailing for certain people. (JWO: xxxi...";
qstHead[15]="Jesus taught that when you brought your sacrifice to the sacrifice-place, but yo...";
qstHead[16]="In Romans 4:6, Paul quotes Psalm 32:1-2 to support salvation is by faith, as dis...";
qstHead[17]="In logic, there is a fallacy called a false dichotomy. The argument gives a fals...";
}
function PrintOpenHTML(nframe,title,closeHead) {
parent.frames[nframe].document.writeln ('&lt;HTML&gt;');
parent.frames[nframe].document.writeln ('&lt;HEAD&gt;');
parent.frames[nframe].document.writeln ("&lt;TITLE&gt;"+title+"&lt;/TITLE&gt;");
parent.frames[nframe].document.writeln ("&lt;META name='generator' content='QuizFaber 2.8.1'&gt;");
if (closeHead==1)
parent.frames[nframe].document.writeln ('&lt;/HEAD&gt;');
}
// &gt;
// --></script>
<noframes>Browser with no frames-enabled option</noframes><!-- hitwebcounter Code START -->
<a target="_blank" href="http://www.hitwebcounter.com/"><img border="0" alt="Counter For Free" title="Counter For Free" src="http://hitwebcounter.com/counter/counter.php?page=435101&amp;style=0001&amp;nbdigits=5&amp;type=page&amp;initCount=0" /> </a> <br /> <!-- hitwebcounter.com --><a style="font-family: Arial, Geneva , Helvetica, sans-serif; font-size: 12px; color: #A3A7B0; text-decoration: underline ;" target="_blank" title="Tracking Counter" href="http://www.hitwebcounter.com/counterresources.php"> <strong>Tracking Counter</strong></a></td>
</tr>
</table>
<span class="article_separator">&nbsp;</span>
</td>
</tr>
</table>
<div class="bottom_top"></div>
<div id="bottom">
</div>
</div>
<div id="footer"><strong>Content View Hits</strong> : 1235963<br />
<script type="text/javascript">
var pv = new Array(1,0,0,0,1);
var trdlname = "/downloads";
//<![CDATA[
var regex = /\.(?:doc|eps|jpg|png|svg|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)($|\&|\?)/;
//]]>
var trlkname = "/external/";
var trmlname = "/mailto/";
</script>
<script type="text/javascript" src="http://jesuswordsonly.com/modules/mod_analytics/gatr.js"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3747914");
pageTracker._initData();
pageTracker._trackPageview();
} catch(err) {}
</script>
</div>
<div class="copyright"></div>
</div>
</body>
</html>