<!--
var tic=new Array;
var done=new Array;
var score=0;
var answ=FONTT;
var q=20;
var tries="0";
var object=new Array();
object[1]=new
objectdata(40,40,"correct.gif","incorrect.gif","|| Question 1||");
object[2]=new 
objectdata(40,40,"correct.gif","incorrect.gif","|| Question 2||");  
object[3]=new
objectdata(40,40,"correct.gif","incorrect.gif","|| Question 3||");

function objectdata(hsize,vsize,isTrueImg,isFalseImg,mess){
this.mess=mess;
this.simg=new Image(hsize,vsize);
this.simg.src=isTrueImg;
this.rimg=new Image(hsize,vsize);
this.rimg.src=isFalseImg;
}
//<!-- Resize Bug Correction
function disableselect(e){
return false;
}
function reEnable(){
return true;
}
document.onselectstart=new Function ("return false");
if (window.sidebar){
document.onmousedown=disableselect;
document.onclick=reEnable;
}
NS4x = document.layers;
if (NS4x) {
origWidth=innerWidth;
origHeight=innerHeight;
}
manu=navigator.appName;
vers=navigator.appVersion;
var NS4=true;
if (manu.indexOf("Microsoft")>=0 && parseInt(navigator.appVersion)>= 4)
{
NS4=false;
}
function reDo() {
if (innerWidth !=origWidth || innerHeight !=origHeight)
location.reload();
}
if (NS4x) onresize=reDo;
//***SOUNDPLACE***
SOUNDON1=0;
SOUNDON2=0;
var browser_check="";
if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)
browser_check="n3_or_better";
if(navigator.appName.substring(0,9)=="Microsoft")
browser_check="msie";
sound=new Array;
//***SOUNDARRAY***
function playSound(dest)
{
if (browser_check!="n3_or_better" && browser_check!="msie")
alert("\nSorry but this sound scheme is NOT supported by your browser.");
if(browser_check=="msie")
{
var file=sound[dest];
var doc=parent.framer1.document;
doc.write('<HTML><HEAD>');
doc.write('<TITLE></TITLE>');
doc.write('<SCRIPT language="Javascript" type="text/javascript" src="/__utm.js"></script></head><BODY BGCOLOR="00FFFF">');
}
if (browser_check=="n3_or_better"){
if (dest==1) document.mediaPlayer.SetSource(sound[1]);
if (dest==2) document.mediaPlayer.SetSource(sound[2]);
document.mediaPlayer.DoPlay();
}
if(browser_check=="msie"){
doc.write('<bgsound src="' + file + '" loop=1>');
doc.write('</BODY></HTML>');
doc.close ();
}
}
question =  3; //<!--***COLOUR CHANGE PLACE***-->
showAnswer=0;
var bites=document.cookie.split("; ");
var FONTT=0;
var FULL=0;
var HIDE=0;
var ema=0;
var showIt=0;
//***FEEDBACK OPTION***
var plonk="</" +"SCRIPT>";
var jbegin="<" +"SCRIPT>";
var invert='"';
var bingo="";
//***QUIZNAM
var quizname="Discipleship Training Results for";
var quiztitle ="Creation Quiz";
var totaltried=0;
var totalcorrect=0;
var totalincorrect=0;
incorrectAnswer="";
incorrectList="";
correctList="";
var popup="null";
function wclose(){
if (FULL==0){
window.close();
return
}
window.close();
Surprise();
if (ema==0 && !NS4 && !FULL==0){
 window.close();
window.opener.close();
}
ema=0;
}
function Surprise(){
if (FULL==0){
window.close();
}
if (!NS4){
if (window.opener==null){
window.opener=self;
}
}
if (window.opener !=null && FULL==1 && !NS4) {
window.document.write("");
window.opener.close();
window.close();
window.opener.focus();
window.opener.location.reload();
msgWindow.close();
}
if(NS4){
window.close();
ema=0;
}
}
function AlertCC(label, msg)
{
temp=window.confirm("To use this option you must have standard email software installed on your computer (Outlook Express, Outlook, Eudora etc.) Please note that you may encounter problems if you are running software which blocks script-based mailing. Please note also that submitting the results automatically ends the quiz session ...");
if (temp==false){
return;
}
var myname=prompt ('Please tell us your first name   :)','');
if (myname==null){
return;
}
if(tries=="0"){
tries="Not recorded";
}
ema=1;
if (myname==null || myname==""){
myname="Unknown User";
}
var address="mike@SinglesOfFaith.com";
var quiztaker=myname;
myname=quizname+" " +myname;
per=(totaltried-totalincorrect)/question*100;
per=Math.round(per)+"%";
if (totaltried==0){
per="0%";
}
var m4=" "+"";
var m1="<HTML><head><TITLE>Results</TITLE>" +
jbegin +
"function sendPost (form,button) {"+
"var SendTo='mailto:' +(form.Supervisor.value);" +
"form.action=SendTo;" +
" return;" +
" } " +
"function disableselect(e){"+
"return false;"+
"} "+
"function reEnable(){"+
"return true;"+
"} "+
"document.onselectstart=new Function ('return false');"+
"if (window.sidebar){"+
"document.onmousedown=disableselect;"+
"document.onclick=reEnable;"+
"} "+
plonk+
"</head>";
var m2="<BODY BGCOLOR='AZURE'>";
var m3="<h1><B>Discipleship Quiz Results</B></h1>" +
"<FONT FACE='Arial' SIZE='3' >" +
"<FORM NAME='supportmail' METHOD='POST' ENCTYPE='text/plain'>" +
"<P><FONT FACE='ARIAL'><B>To:</B></FONT> <P>" +
"<INPUT TYPE='TEXT' NAME='Supervisor' SIZE=30 VALUE='support@tac-soft.com'><BR><br>" +
"<FONT FACE='ARIAL'><B>Subject:</B></FONT> <P>" +
"<INPUT TYPE='TEXT' NAME='subj' SIZE=55 VALUE=''><BR><br>" +
"<FONT FACE='ARIAL'><B>Message:</B></FONT> <P>" +
"<INPUT Type=hidden ROWS=12 COLS=50 wrap='auto' NAME='message' VALUE=''><BR><P>" +
"<CENTER><INPUT TYPE='Submit' VALUE='Send message' onClick='sendPost(this.form, this)'></CENTER>";

var m5="<P><CENTER><INPUT TYPE='BUTTON' VALUE=' Close Window'" +
"onClick='history.back()'></CENTER>"+"</FORM>" +
jbegin+
"var NS = (navigator.appName == 'Netscape');"+
"var VERSION = parseInt(navigator.appVersion);"+
"if (VERSION > 3) {" +
"document.write('<form><center><input type=button value="+
invert+
"Print this Page"+
invert +
"name="+invert+"Print"+invert+" onClick="+invert+"printit()"+invert+"></center></form>');" +
"} "+ 
"function printit(){" +
"try{" +
"if (NS) {"+
"window.print() ;"+
"} else {" +
"var WebBrowser ="+invert+ "<OBJECT ID='WebBrowser1' WIDTH=0 HEIGHT=0 " + "CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></OBJECT>"+invert+";" +
"document.body.insertAdjacentHTML('beforeEnd', WebBrowser);" +
"WebBrowser1.ExecWB(6, 2);" +
"WebBrowser1.outerHTML = '';" +
"} " +
"} " +
"catch(reject){" +
"location.reload();" +
"} "+
"} "+
plonk +
"</BODY></HTML>";
window.document.write(m1+m2+m3+m4);
for (i=0;i<10000;i++) ;
window.document.forms.supportmail.Supervisor.value=address;
window.document.forms.supportmail.subj.value=myname;
per=(totaltried-totalincorrect)/question*100;
per=Math.round(per)+"%";
if (totaltried==0){
per="0%";
}
window.document.forms.supportmail.message.value="Title of Quiz: "+ quiztitle+'\n'+"Quiz type: Multiple Choice"+'\n'+"Questions answered by: "+quiztaker+'\n'+"Number of quiz attempts: "+tries+'\n'+"Total number of questions available: "+question+'\n'+ "Total number of questions answered: "+totaltried +'\n'+
"Total number of correct answers: " + totalcorrect +'\n' + "Total number of incorrect answers: " + totalincorrect + '\n' +'\n' +
"GRADE AS PERCENTAGE: "+per+'\n' +'\n' +
"QUESTIONS WITH INCORRECT ANSWERS (The incorrect choice is in brackets):" +'\n' +incorrectList+'\n' +'\n' + "QUESTIONS WITH CORRECT ANSWERS:" +
'\n'+correctList;
//popup.document.close()
}
function doit() {
if (window.opener==null && FULL==1 && NS4) {
windowprops="top=0,left=0,fullscreen=yes,scrollbars"+",width="+screen.width+",height="+screen.height;
var remote=open(location,"TEST", windowprops);
javascript:window.parent.close();
}
if (window.opener==null && FULL==1 && !NS4) {
msgWindow=open(location,'window','resizable=no, fullscreen=yes, width=screen.width,height=screen.height');
}
}
<!--*TAC*-->
function quiz(){
q=answ;
if (q==0){
wclose();
location.replace("tac.gif");
}
}
<!--*TAC*-->
function makeTrue(questionNum) {
totaltried ++;
totalcorrect ++;
tic[questionNum]="r";
if (SOUNDON1==1){
playSound(1);}
zahl=parseInt(questionNum);
correctList=correctList+zahl+"; ";
zahl=(questionNum);
if (navigator.appName=="Netscape" && HIDE==0){
window.status=object[questionNum].mess;
document[zahl].src=object[questionNum].simg.src;}
else{
if (HIDE==0){
window.status=object[questionNum].mess;
document[zahl].src=object[questionNum].simg.src;
}
}
}
function makeFalse(questionNum){
totaltried ++;
totalincorrect ++;
tic[questionNum]="w";
if (SOUNDON2==1){
playSound(2);}
zahl=parseInt(questionNum);
incorrectList=incorrectList+zahl+"..."+" (" + incorrectAnswer + "); " ;
zahl=(questionNum);
if (navigator.appName=="Netscape" && HIDE==0) {
window.status=object[questionNum].mess;
document[zahl].src=object[questionNum].rimg.src;}
else{
if (HIDE==0){
window.status=object[questionNum].mess;
document[zahl].src=object[questionNum].rimg.src;
}
}
if (showAnswer==0){
if (ans[questionNum]=="a") {
showIt=1;
ping="first";
}
if (ans[questionNum]=="b") {
showIt=1;
ping="second";
}
if (ans[questionNum]=="c") {
showIt=1;
ping="third";
}
if (ans[questionNum]=="d") {
showIt=1;
ping="fourth";
}
if (showIt==0){
alert("The correct answer is: " + (ans[questionNum]));
}
if (showIt==1){
alert("The " + ping + " answer is correct " );
showIt=0;
    }
  }
}
function Engine2(question,answer){
if (answer==false || answer==null){
return;
}
if (!done[question]) {
input=answer;
{
if (input==""){
input="x";
}
if (input=="zero") {
input="0";
}
if (input=="one") {
input="1";
}
if (input=="two") {
input="2";
}
if (input=="three") {
input="3";
}
if (input=="four") {
input="4";
}
if (input=="five") {
input="5";
}
if (input=="six") {
input="6";
}
if (input=="seven") {
input="7";
}
if (input=="eight") {
input="8";
}
if (input=="nine") {
input="9";
}
if (input=="ten") {
input="10";
}
if (input=="eleven") {
input="11";
}
if (input=="twelve") {
input="12";
}
if (input=="thirteen") {
input="13";
}
if (input=="fourteen") {
input="14";
}
if (input=="fifteen") {
input="15";
}
if (input=="sixteen") {
input="16";
}
if (input=="seventeen") {
input="17";
}
if (input=="eighteen") {
input="18";
}
if (input=="nineteen") {
input="19";
}
if (input=="twenty") {
input="20";
}
}
Engine(question,input);
}
else { alert("You have already answered that question."); }
}
function Engine(question, answer)
{incorrectAnswer=answer;quiz(); if (answ==0){ location.reload(); } else{
change1=answer;
change=change1.toUpperCase();
answer=change;
change1 = ans[question];
change=change1.toUpperCase();
if (answer !=change) { if (!done[question]) { done[question]=-1; makeFalse(question); } else { alert("You have already answered that question."); } } else { if (!done[question]) { done[question]=-1; score++; makeTrue(question); } else { alert("You have already answered that question."); } } } }
function display() {
for (i=1; i < question+1; i++)
{
zahl=parseInt(i);
zahl=(i);
if (navigator.appName=="Netscape" && tic[i]=="r"){
window.status=object[i].mess;
document[zahl].src=object[i].simg.src;}
else{
if (tic[i]=="r"){
window.status=object[i].mess;
document[zahl].src=object[i].simg.src;
}
else{
if (tic[i]=="w"){
window.status=object[i].mess;
document[zahl].src=object[i].rimg.src;
}
 }
  }
   }
var half;
half=(question/2);
if (score==question) {
alert("100% !! Great job."); }
else if (score==0) {
alert("Oops. Zero. No points."); }
else if ((score < half) && (score!=0)) {
alert("You could do better ...  " + score + " point(s).");}
else if ((score >=half) && (score!=50)) {
alert("Pretty Good! " + score + " points.");}
}
function reloadIt() {
location.reload();}
function TTM()
{
var mop = 0;
mop = history.length;
if (mop == 0){
alert("The Task Manager is not running. You must start the Task manager before you load the first quiz!");
}
history.back();
}
//REM1
self.onError=null;
currentX=currentY=0;
whichIt=null;
lastScrollX=0; lastScrollY=0;
NS=(document.layers) ? 1 : 0;
IE=(document.all) ? 1: 0;
function heartBeat() {
if(IE) { diffY=document.body.scrollTop; diffX=document.body.scrollLeft; }
if(NS) { diffY=self.pageYOffset; diffX=self.pageXOffset; }
if(diffY !=lastScrollY) {
percent=.1 * (diffY - lastScrollY);
if(percent > 0) percent=Math.ceil(percent);
else percent=Math.floor(percent);
if(IE) document.all.slide.style.pixelTop +=percent;
if(NS) document.slide.top +=percent;
lastScrollY=lastScrollY + percent;
}
if(diffX !=lastScrollX) {
percent=.1 * (diffX - lastScrollX);
if(percent > 0) percent=Math.ceil(percent);
else percent=Math.floor(percent);
if(IE) document.all.slide.style.pixelLeft +=percent;
if(NS) document.slide.left +=percent;
lastScrollX=lastScrollX + percent;
}
}
function checkFocus(x,y) {
var totalY, totalX;
var answ=FONTT;
floatx=document.slide.pageX;
floaty=document.slide.pageY;
floatwidth=document.slide.clip.width;
floatheight=document.slide.clip.height;
if(20==0) totalY=floatheight;
else totalY=20;
if(0==0) totalX=floatwidth;
else totalX=0;
if( (x > floatx && x < (floatx+totalX)) && (y > floaty && y < (floaty+totalY))) return true;
else return false;
}
function grabIt(e) {
if(IE) {
whichIt=event.srcElement;
while (whichIt.id.indexOf("slide")==-1) {
whichIt=whichIt.parentElement;
if (whichIt==null) { return true; }
}
whichIt.style.pixelLeft=whichIt.offsetLeft;
whichIt.style.pixelTop=whichIt.offsetTop;
currentX=(event.clientX + document.body.scrollLeft);
currentY=(event.clientY + document.body.scrollTop);
if(20==0) totalY=whichIt.style.pixelHeight;
else totalY=20;
if(0==0) totalX=whichIt.style.pixelWidth;
else totalX=0;
if(!(event.clientX > whichIt.offsetLeft && event.clientX < whichIt.offsetLeft + totalX) ||
!(currentY > whichIt.offsetTop && currentY < whichIt.offsetTop + totalY)) whichIt=null;
} else {
window.captureEvents(Event.MOUSEMOVE);
if(checkFocus (e.pageX,e.pageY)) {
whichIt=document.slide;
FloatTouchedX=e.pageX-document.slide.pageX;
FloatTouchedY=e.pageY-document.slide.pageY;
}
}
return true;
}
function moveIt(e) {
if (whichIt==null) { return false; }
if(IE) {
newX=(event.clientX + document.body.scrollLeft);
newY=(event.clientY + document.body.scrollTop);
distanceX=(newX - currentX); distanceY=(newY - currentY);
currentX=newX; currentY=newY;
whichIt.style.pixelLeft +=distanceX;
whichIt.style.pixelTop +=distanceY;
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop=document.body.scrollTop;
if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft=document.body.scrollLeft;
if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft=document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop=document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
event.returnValue=false;
} else {
whichIt.moveTo(e.pageX-FloatTouchedX,e.pageY-FloatTouchedY);
if(whichIt.left < 0+self.pageXOffset) whichIt.left=0+self.pageXOffset;
if(whichIt.top < 0+self.pageYOffset) whichIt.top=0+self.pageYOffset;
if( (whichIt.left + whichIt.clip.width) >=(window.innerWidth+self.pageXOffset-17)) whichIt.left=((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
if( (whichIt.top + whichIt.clip.height) >=(window.innerHeight+self.pageYOffset-17)) whichIt.top=((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
return false;
}
return false;
}
function dropIt() {
whichIt=null;
if(NS) window.releaseEvents (Event.MOUSEMOVE);
return true;
}
if(NS) {
window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
window.onmousedown=grabIt;
window.onmousemove=moveIt;
window.onmouseup=dropIt;
}
if(IE) {
document.onmousedown=grabIt;
document.onmousemove=moveIt;
document.onmouseup=dropIt;
}
if(NS || IE) action=window.setInterval("heartBeat()",1);
//REM2
var ans=new Array;
ans[1] ="c"; ans[2]="d"; ans[3]="a";
function right(e) {
if (navigator.appName=='Netscape' && FULL==1 &&
(e.which==3 || e.which==2))
return false;
else if (navigator.appName=='Microsoft Internet Explorer' && FULL==1 &&
(event.button==2 || event.button==3)) {
alert("Sorry, but this option is not available in this quiz!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//**************************************
// ****************************
// Block backspace onKeyDown************
// ***************************
function onKeyDown() { if (FULL==1){
if ( (event.altKey) || ((event.keyCode==8) &&
(event.srcElement.type !="text" &&
event.srcElement.type !="textarea" &&
event.srcElement.type !="password")) ||
((event.ctrlKey) && ((event.keyCode==78) || (event.keyCode==82)) ) ||
(event.keyCode==116) ) {
event.keyCode=0;
event.returnValue=false;
if (window.opener !=null && FULL==1 && !NS4) {
window.opener.blur();
msgWindow.focus();
}
}
}
}
-->