2366 lines
73 KiB
HTML
2366 lines
73 KiB
HTML
|
<!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://www.jesuswordsonly.com/books/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, Faith Alone, Dispensationalism, Ebionites, Commands of Jesus, Original Gospel of Matthew, Hebrew Matthew" />
|
|||
|
<meta name="title" content="Quiz #1 for JWO - Law & Covenants" />
|
|||
|
<meta name="author" content="DJD" />
|
|||
|
<meta name="description" content="Jesus' Words as Primary Focus for Christians" />
|
|||
|
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
|
|||
|
<title>Quiz #1 for JWO - Law & 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" ><p><span style="font-size: medium; font-family: 'times new roman', times;">I have chosen the faithful way. I have placed your ordinances before me. Psalm 119:30 (NASB)</span></p></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td valign="top" >
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<h1><a href="http://www.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://www.jesuswordsonly.com/"><span>Home</span></a></li><li id="current" class="haschild active"><a href="/books.html" class="haschild"><span>Books</span></a><ul><li><a href="/books/jesuswordsonly.html"><span>Jesus' Words Only</span></a></li><li><a href="/books/jesuswordssalvation.html"><span>Jesus' Words on Salvation</span></a></li><li class="haschild"><a href="/books/didcalvinmurderservetus.html" class="child"><span>Did Calvin Murder Servetus?</span></a><ul><li><a href="/books/didcalvinmurderservetus/background-material-did-calvin-murder-servetus.html"><span>Background Material</span></a></li></ul></li><li><a href="/books/hownottosudythebible.html"><span>How Not to Study the Bible</span></a></li><li><a href="/books/flawsofyoungearthscience.html"><span>Flaws of Young Earth Science</span></a></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><li><a href="/books/commands-of-jesus.html"><span>Commands of Jesus</span></a></li><li><a href="/books/gospel-of-john.html"><span>Gospel of John</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://www.jesuswordsonly.com/topicindex/753-bookstore.html"><span>Bookstore</span></a></li><li><a href="/topicindex.html"><span>Topic Index</span></a></li><li><a href="/aboutauthor.html"><span>About Author</span></a></li><li><a href="/newsletters.html"><span>Newsletters</span></a></li></ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div id="mainbody">
|
|||
|
<div id="showcasetop"> </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>Search</h3>
|
|||
|
<form action="index.php" method="post">
|
|||
|
<div class="searchS1">
|
|||
|
<input name="searchword" id="mod_search_searchword" maxlength="20" alt="Search" class="inputboxS1" type="text" size="20" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div>
|
|||
|
<input type="hidden" name="task" value="search" />
|
|||
|
<input type="hidden" name="option" value="com_search" />
|
|||
|
<input type="hidden" name="Itemid" value="2" />
|
|||
|
</form> </div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<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 5261" 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 != "5261") {
|
|||
|
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 class="moduleS1">
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<h3>Recommendations</h3>
|
|||
|
<p><a href="/books/401-music-store-manager.html">Only Jesus</a> (great song by Big Daddy)</p>
|
|||
|
<p><a href="http://astore.amazon.com/jwoogm-20?node=1&page=2">What Did Jesus Say?</a> (2012) - 7 topics </p>
|
|||
|
<p>None above affiliated with me</p> </div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="module">
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<a href="/books/jesuswordsonly.html"><img alt="JesusWordsOnS-cropsmall" src="/images/stories/JesusWordsOnS-cropsmall.jpg" width="116" height="117" /></a> </div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="module">
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<a href="/books/jesuswordssalvation.html"><img alt="JesusWordsSalv-crop2" src="/images/stories/JesusWordsSalv-crop2.jpg" width="114" height="146" /></a> </div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="module">
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<div>
|
|||
|
<a href="/component/content/3-didcalvinmurderservetus/26-calvinfreebookonline.html"><img src="/images/stories/DidCalvinMurderServetusM.jpg" alt="DidCalvinMurderServetusM" height="NaN" width="120" /></a> </div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
<td id="maincol" valign="top">
|
|||
|
<div id="breadcrumbs">
|
|||
|
<span class="breadcrumbs pathway">
|
|||
|
<a href="http://www.jesuswordsonly.com/" class="pathway">Home</a> <img src="/templates/js_relevant/images/arrow.png" alt="" /> Books</span>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<table class="contentpaneopen">
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<tr>
|
|||
|
<td valign="top">
|
|||
|
<div><a href="/images/stories/Quizzes/JWO2012.htm">Quiz on Law & 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 & Justification" name="description" />
|
|||
|
<title>Covenants, Law & Justification</title>
|
|||
|
<script language="JavaScript"><!--
|
|||
|
<!
|
|||
|
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 & 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<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<this.length;i++)
|
|||
|
this[i]=init_array.arguments[i];
|
|||
|
}
|
|||
|
|
|||
|
function valore_hex(n)
|
|||
|
{
|
|||
|
if (n<=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<='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<=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<questions;i++) {
|
|||
|
|
|||
|
if ((valid[i]!=2)&&
|
|||
|
(valid[i]!=4)&&
|
|||
|
((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<10) h='0'+h;
|
|||
|
if (m<10) m='0'+m;
|
|||
|
if (s<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 ("<body BACKGROUND='"+parent.image2+"' BGCOLOR='"+parent.bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln ("<center>");
|
|||
|
parent.frames[0].document.writeln (message+"<BR>");
|
|||
|
for (i=0;i<explan.length; i++) {
|
|||
|
if (explan[i]!="")
|
|||
|
parent.frames[0].document.writeln (explan[i]+"<BR>")
|
|||
|
}
|
|||
|
parent.frames[0].document.writeln ("</center>");
|
|||
|
parent.frames[0].document.writeln ("<span class="mceItemEmbed" SRC=""+soundFile+"" mce_SRC="&quot;+soundFile+&quot;" AUTOSTART=TRUE HIDDEN=TRUE></span>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
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<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<nrisp;i++) {
|
|||
|
if (risp[i]==ri)
|
|||
|
return 1;
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
function isRightAns(nAns,risp)
|
|||
|
{
|
|||
|
var i;
|
|||
|
|
|||
|
for (i=0; i<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>1) msg+=nc+" right and ";
|
|||
|
if (nc==1) msg+=" only one exact and ";
|
|||
|
if (nc==0) msg+=" nothing exact and ";
|
|||
|
|
|||
|
if (ns>1) msg+=ns+" wrong.";
|
|||
|
if (ns==1) msg+=" only one wrong.";
|
|||
|
if (ns==0) msg+=" nothing wrong.";
|
|||
|
|
|||
|
msg+=" You must answer to ";
|
|||
|
|
|||
|
if (nr>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 = '<span class="mceItemEmbed" SRC="'+soundFile+'" mce_SRC="'+soundFile+'" ';
|
|||
|
tagSound += 'HEIGHT=2 WIDTH=0 ';
|
|||
|
tagSound += 'loop="true" autostart="TRUE"></span>';
|
|||
|
}
|
|||
|
else {
|
|||
|
tagSound = '<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></span>';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if (parent.getBrowser()=="IE") {
|
|||
|
tagSound = '<span class="mceItemObject" ID=Crescendo ';
|
|||
|
tagSound += 'CLASSID="clsid:0FC6BF2B-E16A-11CF-AB2E-0080AD08A326" ';
|
|||
|
tagSound += 'HEIGHT=2 WIDTH=0> ';
|
|||
|
tagSound += '<span NAME="Song" value="'+soundFile+'" class="mceItemParam"></span></span>';
|
|||
|
}
|
|||
|
}
|
|||
|
else { if (parent.getBrowser()=="NS") {
|
|||
|
tagSound = '<span class="mceItemEmbed" SRC="'+soundFile+'" mce_SRC="'+soundFile+'" ';
|
|||
|
tagSound += 'HEIGHT=15 loop=yes autostart=true></span>';
|
|||
|
}
|
|||
|
if (parent.getBrowser()=="IE")
|
|||
|
tagSound = '<BGSOUND src="'+soundFile+'" mce_src="'+soundFile+'" loop=infinite>';
|
|||
|
}
|
|||
|
|
|||
|
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()<10)
|
|||
|
strData += "0" + obj.getHours();
|
|||
|
else
|
|||
|
strData += obj.getHours();
|
|||
|
strData += ":";
|
|||
|
if (obj.getMinutes()<10)
|
|||
|
strData += "0" + obj.getMinutes();
|
|||
|
else
|
|||
|
strData += obj.getMinutes();
|
|||
|
strData += ":";
|
|||
|
if (obj.getSeconds()<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("<center><TABLE WIDTH='"+pageWidth+"%' BORDER=0 BGCOLOR='#D0D0D0'>\n");
|
|||
|
|
|||
|
if (linkback!="") {
|
|||
|
documento.writeln("<TD ALIGN='LEFT'>\n");
|
|||
|
documento.write("<A HREF=""+linkback+"" mce_HREF="&quot;+linkback+&quot;" ");
|
|||
|
if (openNewWin==1)
|
|||
|
documento.write("TARGET='NewWindow'");
|
|||
|
|
|||
|
documento.writeln(">" + linkname+"</A></TD>");
|
|||
|
}
|
|||
|
|
|||
|
documento.writeln("<TD ALIGN='RIGHT'>\n");
|
|||
|
documento.writeln("<a href="javascript:printWindow()" mce_href="javascript:printWindow()">PRINT</A> | \n");
|
|||
|
if (man_repeat)
|
|||
|
documento.writeln("<a href="javascript:parent.RepeatQuiz()" mce_href="javascript:parent.RepeatQuiz()">REPEAT</A> | \n");
|
|||
|
if (topChartFile!='')
|
|||
|
documento.writeln("<a href="/"+topChartFile+"" mce_href="/&quot;+topChartFile+&quot;" TARGET='topchartwin'>Top Chart</A> | \n");
|
|||
|
documento.writeln("<a href="javascript:top.close()" mce_href="javascript:top.close()">QUIT</A>\n");
|
|||
|
documento.writeln("</TD></TABLE></center><BR>\n");
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
function PrintQuizResults(doc)
|
|||
|
{
|
|||
|
var deltatime = time - oldtime;
|
|||
|
var name;
|
|||
|
|
|||
|
doc.writeln("<mce:script language='javascript'><!
|
|||
|
\n");
|
|||
|
doc.writeln("function printWindow(){\n");
|
|||
|
doc.writeln(" var vers = parseInt(navigator.appVersion)\n");
|
|||
|
doc.writeln(" if (vers >= 4) window.print()\n");
|
|||
|
doc.writeln(" else window.alert('Please use FILE menu, then PRINT...');\n");
|
|||
|
doc.writeln("}\n");
|
|||
|
doc.writeln("
|
|||
|
// ></mce:script>\n");
|
|||
|
|
|||
|
if ((showReport==1)&&(dhtmlEnabled==1)) {
|
|||
|
doc.writeln("<center><TABLE WIDTH='"+pageWidth+"%' BORDER=0 BGCOLOR='#D0D0D0'>\n");
|
|||
|
doc.writeln("<TD ALIGN='LEFT'><B>Quiz Result</B></TD>\n");
|
|||
|
doc.writeln("<TD ALIGN='RIGHT'>\n");
|
|||
|
doc.writeln("<a href="javascript:printWindow()" mce_href="javascript:printWindow()">PRINT</A> | \n");
|
|||
|
if (man_repeat)
|
|||
|
doc.writeln("<a href="javascript:parent.RepeatQuiz()" mce_href="javascript:parent.RepeatQuiz()">REPEAT</A> | \n");
|
|||
|
if (topChartFile!='')
|
|||
|
doc.writeln("<a href="/"+topChartFile+"" mce_href="/&quot;+topChartFile+&quot;" TARGET='topchartwin'>Top Chart</A> | \n");
|
|||
|
doc.writeln("<a href="javascript:top.close()" mce_href="javascript:top.close()">QUIT</A>\n");
|
|||
|
doc.writeln("</TD></TABLE></center><BR>\n");
|
|||
|
}
|
|||
|
doc.writeln("<center><TABLE border=0 WIDTH='"+pageWidth+"%'><TD ALIGN='LEFT'><TABLE border=0 cellpadding=1>");
|
|||
|
doc.writeln("<TR><TD bgcolor='#000000'><TABLE cellpadding=3 border=0 cellspacing=1><TR><TD bgcolor=white colspan=2>");
|
|||
|
doc.writeln("<TABLE cellpadding=5 border=0 width=100%><TR><TD><FONT color=000000 face=arial size=4>"+parent.quizTitle+"</TD>");
|
|||
|
doc.writeln("</TR></TABLE></TD></TR>");
|
|||
|
doc.writeln("<TR><TD bgcolor=white nowrap><FONT color=cc0000 face=arial size=2 class='table1'>&#160;&#160;Number of questions : &#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=white><FONT color=cc0000 face=arial size=2 class='table1'>&#160;&#160;"+(questions-invisibleQuests)+"&#160;&#160;</TD></TR>");
|
|||
|
if (identityName!="") {
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Candidate name &#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd><FONT face=arial size=2 class='table1'>&#160;&#160;"+identityName+"&#160;&#160;</TD></TR>");
|
|||
|
}
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Right Answers&#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;"+nc+"&#160;&#160;</TD></TR>");
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Wrong Answers&#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;"+ns+"&#160;&#160;</TD></TR>");
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Unmarked questions : &#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;"+falseQuests+"&#160;&#160;</TD></TR>");
|
|||
|
|
|||
|
if (maxtime>0) {
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Time elapsed : &#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;"+getTimeString(deltatime)+"&#160;&#160;</TD></TR>");
|
|||
|
}
|
|||
|
|
|||
|
doc.writeln("<TR><TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;Date : &#160;&#160;</TD>");
|
|||
|
doc.writeln(" <TD bgcolor=ffffdd nowrap><FONT face=arial size=2 class='table1'>&#160;&#160;"+parent.DataToStringa()+"&#160;&#160;</TD></TR>");
|
|||
|
|
|||
|
doc.writeln("<TR><TD bgcolor=white nowrap><FONT color=cc0000 face=arial size=2 class='table1'>&#160;&#160;MARK&#160;&#160;</TD>");
|
|||
|
if (computeMarkErr==0)
|
|||
|
doc.writeln(" <TD bgcolor=white><FONT color=cc0000 face=arial size=2 class='table1'>&#160;&#160;<FONT SIZE=4 FACE='Arial' class='table1'>"+voto+"</FONT>/"+maxvoto+"&#160;&#160;</TD></TR>");
|
|||
|
else
|
|||
|
doc.writeln(" <TD bgcolor=white><FONT color=cc0000 face=arial size=2 class='table1'>&#160;&#160;<FONT SIZE=2 FACE='Arial' class='table1'>No mark</FONT>&#160;&#160;</TD></TR>");
|
|||
|
|
|||
|
doc.writeln("</TABLE></TD></TR></TABLE></TD></TABLE></center>");
|
|||
|
}
|
|||
|
|
|||
|
function checkRisposta(checkBox,risp,n)
|
|||
|
{
|
|||
|
if ( ((checkBox.checked==true) && (parent.isRightAns(n,risp)==1)) ||
|
|||
|
((checkBox.checked==false) && (parent.isRightAns(n,risp)==0)) )
|
|||
|
return 1;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
function checkRispostaBooleana(radioBox,risp,n)
|
|||
|
{
|
|||
|
if ( ((radioBox[0].checked==true) && (risp[n]==1)) ||
|
|||
|
((radioBox[1].checked==true) && (risp[n]==0)) )
|
|||
|
return 1;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
function checkTrueOrFalse(radioBox)
|
|||
|
{
|
|||
|
if ( (radioBox[0].checked==false) &&
|
|||
|
(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<allAnsReport[n].length;j++) {
|
|||
|
value = allAnsReport[n][j].valuation;
|
|||
|
if (value>0)
|
|||
|
msg += Lettera(j)+' ';
|
|||
|
}
|
|||
|
return msg;
|
|||
|
}
|
|||
|
|
|||
|
function getNumOfRightAns(n)
|
|||
|
{
|
|||
|
var j,value,num=0;
|
|||
|
|
|||
|
for (j=0;j<allAnsReport[n].length;j++) {
|
|||
|
value = allAnsReport[n][j].valuation;
|
|||
|
if (value>0)
|
|||
|
num++;
|
|||
|
}
|
|||
|
return num;
|
|||
|
}
|
|||
|
|
|||
|
function getListOfSelAns(n)
|
|||
|
{
|
|||
|
var j,value,msg='';
|
|||
|
|
|||
|
if (typeOfQuest[n]==3) { return allAnsReport[n][0].choice;
|
|||
|
}
|
|||
|
|
|||
|
for (j=0;j<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<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<allAnsReport[n].length;j++) {
|
|||
|
if ((typeOfQuest[n]!=4)&&(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<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>0)&&(choice==1)) || ((value<0)&&(choice==0)))
|
|||
|
return 1;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
function getScore(n)
|
|||
|
{
|
|||
|
var j,choice,value,data,
|
|||
|
score=0,nchoice=0;
|
|||
|
|
|||
|
for (j=0;j<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<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<value.length; i++) {
|
|||
|
str2 = choice[0] + value[i];
|
|||
|
if (str1.toLowerCase()==str2.toLowerCase()) {
|
|||
|
for (j=0; j<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<allAnsReport[n].length;j++) {
|
|||
|
if (getGuessFillGapN(n,j)==1) guess++;
|
|||
|
}
|
|||
|
return guess;
|
|||
|
}
|
|||
|
|
|||
|
function trim(str) {
|
|||
|
var i,iStart,iStop;
|
|||
|
for (i=0; i<str.length; i++) {
|
|||
|
if (str.charAt(i)!=' ')
|
|||
|
break;
|
|||
|
}
|
|||
|
iStart = i;
|
|||
|
for (i=str.length-1; i>=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<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("<P><center><TABLE WIDTH='"+pageWidth+"%' BORDER=0>");
|
|||
|
|
|||
|
for (k=0;k<questions;k++) {
|
|||
|
|
|||
|
if ((k==0)&&(ncols_report==1)) {
|
|||
|
documento.writeln("<TD>\n");
|
|||
|
}
|
|||
|
if ((k==0)&&(ncols_report>=2)) {
|
|||
|
documento.writeln("<TD WIDTH='"+col_width+"%' VALIGN='top'>\n");
|
|||
|
}
|
|||
|
if ((k==half_index)&&((ncols_report==2)||(ncols_report==4))) {
|
|||
|
documento.writeln("</TD><TD WIDTH='"+col_width+"%' VALIGN='top'>");
|
|||
|
}
|
|||
|
if (ncols_report==3) {
|
|||
|
if ((k==index13)||(k==index23)) {
|
|||
|
documento.writeln("</TD><TD WIDTH='33%' VALIGN='top'>");
|
|||
|
}
|
|||
|
}
|
|||
|
if (ncols_report==4) {
|
|||
|
if ((k==index14)||(k==index34)) {
|
|||
|
documento.writeln("</TD><TD WIDTH='25%' VALIGN='top'>");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
i = ordineDomande[k];
|
|||
|
|
|||
|
if (valid[i]==4)
|
|||
|
continue;
|
|||
|
|
|||
|
documento.writeln("<B><FONT SIZE=+1 class='qstId'>"+n+"</FONT></B><B> "+qstHead[i]+"</B><BR>");
|
|||
|
n++;
|
|||
|
|
|||
|
documento.writeln("<I>");
|
|||
|
if (valid[i]==1)
|
|||
|
documento.writeln("Correct answer<BR>");
|
|||
|
else if (valid[i]==-1)
|
|||
|
documento.writeln("Wrong answer<BR>");
|
|||
|
else if (valid[i]==2)
|
|||
|
documento.writeln("Question not valuated<BR>");
|
|||
|
else if (valid[i]==3) {
|
|||
|
if (typeOfQuest[i]==2)
|
|||
|
documento.writeln("Right sentences "+nScore[i]+" on "+maxScore[i]+"<BR>");
|
|||
|
else if (typeOfQuest[i]==4)
|
|||
|
documento.writeln("Guess words "+nScore[i]+" on "+maxScore[i]+"<BR>");
|
|||
|
else if (typeOfQuest[i]==5)
|
|||
|
documento.writeln("Matching "+nScore[i]+" on "+maxScore[i]+"<BR>");
|
|||
|
}
|
|||
|
else if (valid[i]==5) {
|
|||
|
documento.write("scores "+nScore[i]);
|
|||
|
if (groups[i]==0)
|
|||
|
documento.writeln(" (MARK "+maxScore[i]+")<BR>");
|
|||
|
else if (groups[i]==1)
|
|||
|
documento.writeln("<BR>Scores added with the previous question<BR>");
|
|||
|
else if (groups[i]==2)
|
|||
|
documento.writeln("<BR>MARK (computes from the sum of scores of next questions): "+maxScore[i]+"<BR>");
|
|||
|
}
|
|||
|
documento.writeln("</I>");
|
|||
|
|
|||
|
if (valid[i]==2) {
|
|||
|
documento.write("<P>"+allAnsReport[i][0].choice+"</P>");
|
|||
|
continue;
|
|||
|
}
|
|||
|
|
|||
|
documento.writeln("<BR>");
|
|||
|
documento.writeln("<TABLE BORDER=0 WIDTH='"+pageWidth+"%'>");
|
|||
|
for (j=0;j<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(" <TR><TD WIDTH=30><IMG SRC=""+mediaDir+"/smile.gif" mce_SRC="&quot;+mediaDir+&quot;/smile.gif" ALIGN='CENTER'></TD>");
|
|||
|
else
|
|||
|
documento.write(" <TR><TD WIDTH=30><IMG SRC=""+mediaDir+"/ko.gif" mce_SRC="&quot;+mediaDir+&quot;/ko.gif" ALIGN='CENTER'></TD>");
|
|||
|
|
|||
|
documento.write("<TD WIDTH=30> <FONT FACE='Arial'>");
|
|||
|
documento.write(Lettera(j));
|
|||
|
documento.write("</FONT> </TD>");
|
|||
|
|
|||
|
choice = allAnsReport[i][j].choice;
|
|||
|
if (typeOfQuest[i]==2) {
|
|||
|
documento.write("<TD WIDTH=50> V ");
|
|||
|
if (choice==1)
|
|||
|
documento.write("<IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&quot;+mediaDir+&quot;/ok.gif" ALIGN='CENTER'></TD>");
|
|||
|
else
|
|||
|
documento.write("<IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&quot;+mediaDir+&quot;/square.gif" ALIGN='CENTER'></TD>");
|
|||
|
documento.write("<TD WIDTH=50> F ");
|
|||
|
if (choice==0)
|
|||
|
documento.write("<IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&quot;+mediaDir+&quot;/ok.gif" ALIGN='CENTER'></TD>");
|
|||
|
else
|
|||
|
documento.write("<IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&quot;+mediaDir+&quot;/square.gif" ALIGN='CENTER'></TD>");
|
|||
|
}
|
|||
|
else if (typeOfQuest[i]==4) {
|
|||
|
if (getGuessFillGapN(i,j))
|
|||
|
documento.write("<TD>"+choice+"</TD>");
|
|||
|
else {
|
|||
|
documento.write("<TD><S>"+choice+"</S> <IMG SRC=""+mediaDir+"/arrow.gif" mce_SRC="&quot;+mediaDir+&quot;/arrow.gif" ALIGN='CENTER'> ");
|
|||
|
for (l=0; l<allAnsReport[i][j].valuation.length-1; l++)
|
|||
|
documento.write(allAnsReport[i][j].valuation[l]+ " , ");
|
|||
|
documento.write(allAnsReport[i][j].valuation[l]);
|
|||
|
documento.write("</TD>");
|
|||
|
}
|
|||
|
}
|
|||
|
else if (typeOfQuest[i]==5) {
|
|||
|
m = getGuessMatchN(i,j);
|
|||
|
if (m==1) documento.write("<TD>"+choice[0]+" - "+choice[1]+"</TD>");
|
|||
|
else if (m==0) {
|
|||
|
documento.write("<TD>"+choice[0]+" - ");
|
|||
|
documento.write("<S>"+choice[1]+"</S>");
|
|||
|
documento.write("<IMG SRC=""+mediaDir+"/arrow.gif" mce_SRC="&quot;+mediaDir+&quot;/arrow.gif" ALIGN='CENTER'> ");
|
|||
|
for (l=0; l<allAnsReport[i][j].valuation.length-1; l++)
|
|||
|
documento.write(allAnsReport[i][j].valuation[l]+ " , ");
|
|||
|
documento.write(allAnsReport[i][j].valuation[l]);
|
|||
|
documento.write("</TD>");
|
|||
|
}
|
|||
|
else {
|
|||
|
documento.write("<TD><S>"+choice[0]+" - "+choice[1]+"</S>");
|
|||
|
}
|
|||
|
}
|
|||
|
else {
|
|||
|
if (choice==1)
|
|||
|
documento.write("<TD WIDTH=30><IMG SRC=""+mediaDir+"/ok.gif" mce_SRC="&quot;+mediaDir+&quot;/ok.gif" ALIGN='CENTER'></TD>");
|
|||
|
else
|
|||
|
documento.write("<TD WIDTH=30><IMG SRC=""+mediaDir+"/square.gif" mce_SRC="&quot;+mediaDir+&quot;/square.gif" ALIGN='CENTER'></TD>");
|
|||
|
}
|
|||
|
|
|||
|
documento.writeln("<TD>");
|
|||
|
|
|||
|
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("</TD></TR>");
|
|||
|
}
|
|||
|
documento.writeln("</TABLE><BR>");
|
|||
|
}
|
|||
|
documento.writeln("</TD></TABLE></center>");
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
function init_IntArray(n) {
|
|||
|
var i;
|
|||
|
this.length=n;
|
|||
|
for (i=0; i<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<nvett; i++)
|
|||
|
this[i]=-1;
|
|||
|
|
|||
|
count=0;
|
|||
|
while (count<nvett) {
|
|||
|
n = rand(nvett);
|
|||
|
nuovoPezzo = 1;
|
|||
|
for (i=0; i<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<lista1.length; n++) {
|
|||
|
lettera = Lettera(n);
|
|||
|
doc.writeln("<TD WIDTH="+pageWidth+"% NOWRAP>");
|
|||
|
|
|||
|
doc.writeln("<SELECT NAME='"+nomeSelect+"'>");
|
|||
|
for (i=0; i<lista1.length; i++) {
|
|||
|
if (n==i)
|
|||
|
doc.writeln("<OPTION SELECTED>"+lista1[ordine1[i]]);
|
|||
|
else
|
|||
|
doc.writeln("<OPTION>"+lista1[ordine1[i]]);
|
|||
|
}
|
|||
|
doc.writeln("</SELECT>");
|
|||
|
|
|||
|
doc.writeln("<SELECT NAME='"+nomeSelect+"'>");
|
|||
|
for (i=0; i<lista2.length; i++) {
|
|||
|
if (n==i)
|
|||
|
doc.writeln("<OPTION SELECTED>"+lista2[ordine2[i]]);
|
|||
|
else
|
|||
|
doc.writeln("<OPTION>"+lista2[ordine2[i]]);
|
|||
|
}
|
|||
|
doc.writeln("</SELECT>");
|
|||
|
doc.writeln("</TD>");
|
|||
|
doc.writeln("<TR>");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
function getSelezione(obj) {
|
|||
|
var i;
|
|||
|
|
|||
|
for (i=0; i<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<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<nDlgs; i++) {
|
|||
|
if (dlgList[i].dlgId==dlgId) {
|
|||
|
dlgList[i].handle.close();
|
|||
|
dlgList[i].opened = 0;
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
function UnmanageAllDialogs() {
|
|||
|
var i;
|
|||
|
for (i=0; i<nDlgs; i++) {
|
|||
|
UnmanageDialog(dlgList[i].dlgId);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
function ASCIItoInt(c)
|
|||
|
{
|
|||
|
var i,car;
|
|||
|
|
|||
|
for (i=32;i<256;i++) {
|
|||
|
car = '%'+dec_to_hex(i);
|
|||
|
if (c==unescape(car))
|
|||
|
return i;
|
|||
|
}
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
function InttoASCII(n)
|
|||
|
{
|
|||
|
var car;
|
|||
|
if ((n<0)||(n>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<msg.length;i+=3) {
|
|||
|
num = eval(msg.substring(i,i+3))-keycode[j%n];
|
|||
|
if ((num<32)||(num>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<minNum)||(num>maxNum))
|
|||
|
PrintWrongKeyword();
|
|||
|
|
|||
|
return num;
|
|||
|
}
|
|||
|
|
|||
|
function CodeString(msg)
|
|||
|
{
|
|||
|
var i,n;
|
|||
|
var code_msg=""; var c=0;
|
|||
|
|
|||
|
n = keyword.length;
|
|||
|
|
|||
|
for (i=0;i<msg.length;i++) {
|
|||
|
/* range codice ASCII : 32 - 127 */
|
|||
|
if (ASCIItoInt(msg.charAt(i))<32)
|
|||
|
c = 32 + keycode[i%n];
|
|||
|
else if (ASCIItoInt(msg[i])>127)
|
|||
|
c = 127 + keycode[i%n];
|
|||
|
else
|
|||
|
c = ASCIItoInt(msg.charAt(i)) + keycode[i%n];
|
|||
|
|
|||
|
if (c<10)
|
|||
|
code_msg += " "+c;
|
|||
|
else if (c<100)
|
|||
|
code_msg += " "+c;
|
|||
|
else
|
|||
|
code_msg += ""+c;
|
|||
|
}
|
|||
|
return code_msg;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
function MakeKeyCode()
|
|||
|
{
|
|||
|
var i,num;
|
|||
|
var car;
|
|||
|
|
|||
|
for (i=0;i<keyword.length;i++) {
|
|||
|
car = keyword.charAt(i);
|
|||
|
num = ASCIItoInt(car);
|
|||
|
|
|||
|
if ((car>='a')&&(car<='z')) {
|
|||
|
keycode[i]=num-97;
|
|||
|
continue;
|
|||
|
}
|
|||
|
if ((car>='A')&&(car<='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)&&(oldtime!=time))
|
|||
|
SetClock(getTimeString(delta));
|
|||
|
|
|||
|
if ((delta<=0)&&(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 = "<FONT size=5 face='Arial' color='#696969'>" + msg + "</FONT>";
|
|||
|
|
|||
|
if (nScore[n]<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 = "<FONT size=5 face='Arial' color='#000080'>Good ! Right answer</FONT>";
|
|||
|
}
|
|||
|
else {
|
|||
|
msg = "Wrong! The correct answer was " + getListOfRightAns(n);
|
|||
|
textField.value = msg;
|
|||
|
msg = "<FONT size=5 face='Arial' color='#A52A2A'>" + msg + "</FONT>";
|
|||
|
}
|
|||
|
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 = "<FONT size=5 face='Arial' color='#000080'>" + msg + "</FONT>";
|
|||
|
|
|||
|
if (getGuessAns(n)<getNumAns(n))
|
|||
|
msgFormat += "<BR>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 ("<body BGCOLOR='"+parent.bkCol2+"' BACKGROUND='"+parent.image2+"' BGCOLOR='"+parent.bkCol2+"' TOPMARGIN='0' LEFTMARGIN='0' marginheight='0' marginwidth='0'>");
|
|||
|
parent.frames[2].document.writeln ("<form name='domanda'><table width='100%'><TR>");
|
|||
|
|
|||
|
if (maxtime>0) {
|
|||
|
parent.frames[2].document.writeln ("<td width='20%' align='CENTER'><INPUT TYPE='TEXT' SIZE=10 NAME='clock'></TD>");
|
|||
|
}
|
|||
|
else {
|
|||
|
parent.frames[2].document.writeln ("<td width='20%'></TD>");
|
|||
|
}
|
|||
|
if (silent==0) {
|
|||
|
msg="<td width='23%' align='CENTER'><FONT FACE='Arial' SIZE='2'><B>right</B> : "+nc+"</FONT></TD>";
|
|||
|
msg+="<td width='23%' align='CENTER'><FONT FACE='Arial' SIZE='2'><B>wrong</B> : "+ns+"</FONT></TD>";
|
|||
|
msg+="<td width='23%' align='CENTER'><FONT FACE='Arial' SIZE='2'><B>to do</B> : "+nr+"</FONT></TD>";
|
|||
|
}
|
|||
|
else {
|
|||
|
msg="<td width='69%' align='LEFT'>to be answered :<FONT SIZE=+1>"+nr+"</FONT></TD>";
|
|||
|
}
|
|||
|
|
|||
|
if (quizRetire==1)
|
|||
|
msg+="<td width='11%' align='RIGHT'><INPUT TYPE='BUTTON' VALUE='Retire' OnClick='parent.Retire()'></TD>";
|
|||
|
else
|
|||
|
msg+="<td width='11%'></TD>";
|
|||
|
|
|||
|
parent.frames[2].document.writeln (msg+"</TR></TABLE></FORM></body></html>");
|
|||
|
parent.frames[2].document.close();
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
function PrintWrongKeyword()
|
|||
|
{
|
|||
|
parent.frames[0].document.clear();
|
|||
|
PrintOpenHTML(0,"",1);
|
|||
|
parent.frames[0].document.writeln ("<body BGCOLOR='"+parent.bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
parent.frames[0].document.close();
|
|||
|
|
|||
|
parent.frames[1].document.clear();
|
|||
|
parent.frames[1].document.open();
|
|||
|
PrintOpenHTML(1,"",1);
|
|||
|
parent.frames[1].document.writeln ("<body BGCOLOR='"+parent.bkCol1+"'>");
|
|||
|
parent.frames[1].document.writeln("<CENTER><FONT SIZE=6 FACE='Arial' COLOR='#FF0000'>Watch out!</FONT><BR>");
|
|||
|
parent.frames[1].document.writeln ("<FONT SIZE=+2>The keyword isn't correct</FONT><BR>");
|
|||
|
parent.frames[1].document.writeln ("Unable to continue the quiz<BR>");
|
|||
|
parent.frames[1].document.writeln ("For information, contact the quiz's author<BR>");
|
|||
|
parent.frames[1].document.writeln("<P><INPUT TYPE='BUTTON' VALUE='QUIT' OnClick='top.close()'>");
|
|||
|
parent.frames[1].document.writeln("</CENTER>");
|
|||
|
parent.frames[1].document.writeln ("</body></html>");
|
|||
|
parent.frames[1].document.close();
|
|||
|
|
|||
|
PrintCopyright(0);
|
|||
|
}
|
|||
|
|
|||
|
function PrintNoReload()
|
|||
|
{
|
|||
|
parent.frames[0].document.clear();
|
|||
|
PrintOpenHTML(0,"",1);
|
|||
|
parent.frames[0].document.writeln ("<body BGCOLOR='"+parent.bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
parent.frames[0].document.close();
|
|||
|
|
|||
|
parent.frames[1].document.clear();
|
|||
|
parent.frames[1].document.open();
|
|||
|
PrintOpenHTML(1,"",1);
|
|||
|
parent.frames[1].document.writeln ("<body BGCOLOR='"+parent.bkCol1+"'>");
|
|||
|
parent.frames[1].document.writeln("<CENTER><BR><BR><FONT SIZE=6 FACE='Arial' COLOR='#FF0000'>Watch out!</FONT><BR>");
|
|||
|
parent.frames[1].document.writeln ("<FONT SIZE=+2>Reload of quiz is not allowed</FONT><BR>");
|
|||
|
parent.frames[1].document.writeln ("Unable to start the quiz<BR>");
|
|||
|
parent.frames[1].document.writeln ("For information, contact the quiz's author<BR>");
|
|||
|
parent.frames[1].document.writeln("<P><INPUT TYPE='BUTTON' VALUE='QUIT' OnClick='top.close()'>");
|
|||
|
parent.frames[1].document.writeln("</CENTER>");
|
|||
|
parent.frames[1].document.writeln ("</body></html>");
|
|||
|
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("<mce:style><!
|
|||
|
\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("
|
|||
|
></mce:style><style mce_bogus="1">\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("</style>\n");
|
|||
|
parent.frames[1].document.writeln("</head>");
|
|||
|
|
|||
|
parent.frames[1].document.writeln("<body BACKGROUND='"+image+"' BGCOLOR='"+bkCol1+"'>");
|
|||
|
|
|||
|
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("<P><CENTER>");
|
|||
|
parent.frames[1].document.writeln(finalMess);
|
|||
|
parent.frames[1].document.writeln("</CENTER>");
|
|||
|
PrintLinkBack(parent.frames[1].document);
|
|||
|
}
|
|||
|
|
|||
|
parent.frames[1].document.writeln ("</body></html>");
|
|||
|
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 ("<body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln("<CENTER><FONT SIZE=4 FACE='Arial'><B><I>Quiz Result</I></B></FONT></CENTER>");
|
|||
|
parent.frames[0].document.writeln ("</FONT></CENTER>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
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 ("<body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'>");
|
|||
|
else
|
|||
|
parent.frames[2].document.writeln ("<body BGCOLOR='"+bkCol2+"'>");
|
|||
|
|
|||
|
if (printCpRg==1) {
|
|||
|
parent.frames[2].document.writeln("<CENTER>");
|
|||
|
parent.frames[2].document.writeln("<FONT SIZE=1 FACE='Arial, Helvetica' COLOR='#666666'>");
|
|||
|
parent.frames[2].document.writeln("This quiz was created ");
|
|||
|
if (parent.author!='')
|
|||
|
parent.frames[2].document.writeln("by <B>"+parent.author+"</B> ");
|
|||
|
parent.frames[2].document.writeln("with <A HREF="http://"+qmakeURL+"" mce_HREF="http://&quot;+qmakeURL+&quot;"><B>"+qmakeProgName+" "+qmakeVers+"</B></A>");
|
|||
|
parent.frames[2].document.writeln ("</CENTER></FONT>");
|
|||
|
}
|
|||
|
parent.frames[2].document.writeln ("</body></html>");
|
|||
|
parent.frames[2].document.close();
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
function showTooltip (strTooltip) {
|
|||
|
parent.frames[0].document.clear();
|
|||
|
PrintOpenHTML(0,"",1);
|
|||
|
parent.frames[0].document.writeln ("<body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln ("<CENTER>");
|
|||
|
parent.frames[0].document.writeln ("<I>Hint</I>:<BR>"+strTooltip);
|
|||
|
parent.frames[0].document.writeln ("</CENTER>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
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 ("<body BACKGROUND='"+image2+"' BGCOLOR='"+bkCol2+"'>");
|
|||
|
parent.frames[0].document.writeln ("</body></html>");
|
|||
|
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<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>=60) nc++;
|
|||
|
else ns++;
|
|||
|
}
|
|||
|
else if (valid[i]==5) {
|
|||
|
ratio = 100 * maxScore[i] / maxvoto;
|
|||
|
if (ratio>=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<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 God’s 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 ('<HTML>');
|
|||
|
parent.frames[nframe].document.writeln ('<HEAD>');
|
|||
|
parent.frames[nframe].document.writeln ("<TITLE>"+title+"</TITLE>");
|
|||
|
parent.frames[nframe].document.writeln ("<META name='generator' content='QuizFaber 2.8.1'>");
|
|||
|
if (closeHead==1)
|
|||
|
parent.frames[nframe].document.writeln ('</HEAD>');
|
|||
|
}
|
|||
|
// >
|
|||
|
// --></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&style=0001&nbdigits=5&type=page&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"> </span>
|
|||
|
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<div class="bottom_top"></div>
|
|||
|
<div id="bottom">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div id="footer"><strong>Content View Hits</strong> : 11715273<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://www.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>
|