var quiz = new Array(); var r = 0;
quiz[r++] =('37~53~How many spies did Moses send into the Lan of Canaan?~8~10~12~');
quiz[r++] =('46~18~One of the Songs of Moses celebrated what single event?~The Egyptians freeing the Israelites.~The destruction of the Egyptian army crossing the Red Sea.~The arrival in the Promised Land.~');
quiz[r++] =('12~92~Who led the Israelites across the Jordan into the Promised Land?~Joshua~Moses~Aaron~');
quiz[r++] =('30~73~How many spies did the Israelites send into the city of Jericho?~2~7~12~');
quiz[r++] =('27~58~How many days did the Israelite army march around the city of Jericho?~5~6~7~');
quiz[r++] =('24~92~When the Promised Land was divided up between the Tribes of Israel, which tribe did not receive their own land but was given cities from the other tribes’ lands?~Levi~Reuben~Dan~');
quiz[r++] =('50~49~Which of the following was not one of the plagues on Egypt?~Frogs~Flies~Snakes~');
quiz[r++] =('37~74~Which Prophets body was taken with the Israelites when they were freed from Egypt?~Isaac~Joseph~Jacob~');
quiz[r++] =('42~94~How many men did God tell Gideon to take with him when he defeated the Midianites?~300~500~1000~');
quiz[r++] =('20~89~How many Philistines did Samson kill with the jawbone of a donkey?~100~500~1000~');
quiz[r++] =('41~93~How many Philistine kings were killed when Samson collapsed their temple on them?~2~5~7~');
quiz[r++] =('33~52~Who was the first king of Israel?~Samuel~Saul~David~');
quiz[r++] =('12~54~Before Israel had a King, what were the leaders of Israel called?~Judges~Princes~Lords~');
quiz[r++] =('26~62~When the Philistines captured the Ark of the Covenant, what did they do with it?~Destroyed it~Worshiped it~Returned it to the Israelites~');
quiz[r++] =('42~38~Who Anointed Saul King of Israel?~Eli~Joshua~Samuel~');
quiz[r++] =('30~63~What was used to anoint Saul King of Israel?~Olive oil~Water~Frankincense~');
quiz[r++] =('18~97~What is not one of the things that made Saul stand out from all the other men in Israel when he was made King?~He was taller~He was more handsome~He was richer~');
quiz[r++] =('35~33~Who did Saul defeat soon after becoming King and thus united all of Israel behind him?~The Ammonites~The Philistines~The Midianites~');
quiz[r++] =('42~78~When the Philistines captured the Ark of the Covenant, they placed it in their Temple next to the statue of their god Dagon.  What happened to the statue Dagon during the night?~It Burst into Flames~It crumbled to dust~It fell face down~');
quiz[r++] =('22~28~What did God make on the 3rd day of creation?~All the plants~All the animals~The sun, moon and stars~');
quiz[r++] =('36~97~What did God make on the 3rd day of creation?~All the plants~All the animals~The sun, moon and stars~');
quiz[r++] =('32~58~What did God make on the 4th day of creation?~All the plants~All the animals~The sun, moon and stars~');
quiz[r++] =('29~72~What else did God create on the day He created the fish?~The animal~The bird~Man~');
quiz[r++] =('9~57~David was first anointed king of what Country?~Israel~Judah~Jerusalem~');
quiz[r++] =('30~28~After Saul, who became king of Israel?~Saul\'s son, Ishbosheth~David~Abner~');

var quest = 4;

// Random Quiz Selector Addon
// copyright 12th April, 2005 by Stephen Chapman
// these functions may be added to the bottom of the quizhead.js script
// of most of my quiz scripts to randomly select "quest" questions from
// a larger array of questions
// permission to use this Javascript on your web page is granted
// provided that all of the code in this script (including these
// comments) is used without any alteration

function randQuiz(num,arry) {if (quiz.length < num) return arry;var rndary = new Array();for (var i = 0; i<arry.length; i++) {var x = Math.floor(Math.random()*500)+100;var y = 101+i;rndary[i] = ''+x+y+':'+arry[i];}rndary.sort();var newary = new Array();var sel = '';for (var i=0; i<num; i++) {sel += rndary[i].substr(3,3); newary[i] = rndary[i].substr(7);}document.cookie = 'quizSel='+sel;return newary;}
function sameQuiz(quiz,sel) {var newary = new Array();for (var i=0; i< sel.length/3;i++) {var n = sel.substr(i*3,3);var m = parseInt(n) - 101;newary[i] = quiz[m];}return newary;}
function readCookie(cname) {thisCookie = document.cookie.split('; ');for (var i=0; i<thisCookie.length;i++) {if (thisCookie[i].split('=')[0] == cname) return thisCookie[i].split('=')[1];} return false;}
var sel = readCookie('quizSel');if (sel) quiz = sameQuiz(quiz,sel);else quiz = randQuiz(quest,quiz);