'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
Hosted by www.Geocities.ws

'; //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function DisplayExercise(){ //Build the output string var OutString = ''; OutString += ''; OutString += '
'; OutString += '
'; OutString += TitleCode; OutString += Buttons1; OutString += BuiltExercise; OutString += Buttons2; OutString += BuiltClues; OutString += NavBar; OutString += '
Hosted by www.Geocities.ws

'; if (is.CRAPBrowser){OutString=ResolveAllURLs(OutString);} //Write it to the frame BottomFrame.document.clear(); BottomFrame.document.open(); BottomFrame.document.write(OutString); BottomFrame.document.close(); } function BuildClue(ClueNum,x,y,Across){ var OutString = ''; if (Across == true){ if (ClueNum >= A.length){ return ''; } if (A[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + A[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BA'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (j= D.length){ return ''; } if (D[ClueNum] == null){ return ''; } OutString = ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i 0){ OutString += '
'; } OutString = OutString + 'Down: ' + ClueNum + '. ' + D[ClueNum]; OutString += GetAnswer; OutString = ReplaceStuff('[BoxName]', 'BD'+ClueNum, OutString); //Find out how long the answer is AnsLength = 0; i = x; j = y; while (i-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } L = new Array(); L[0] = new Array('','','','','','','','','','','T',''); L[1] = new Array('','','','','','','','','','','R',''); L[2] = new Array('','','','','','','','','','','U',''); L[3] = new Array('','','P','','','','','','','','T',''); L[4] = new Array('','','A','','F','','','B','U','S','H',''); L[5] = new Array('','','L','','O','','','','','E','','B'); L[6] = new Array('S','T','A','I','R','S','','S','N','A','K','E'); L[7] = new Array('','','C','','G','','','L','','L','','G'); L[8] = new Array('','','E','','I','','','A','','','','G'); L[9] = new Array('','','','','V','','','V','','','','E'); L[10] = new Array('P','A','T','I','E','N','C','E','','','','D'); C = new Array(); C[0] = new Array(0,0,0,0,0,0,0,0,0,0,1,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,2,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,3,0,0,4,0,5,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,6); C[6] = new Array(7,0,0,0,0,0,0,8,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(9,0,0,0,0,0,0,0,0,0,0,0); G = new Array(); G[0] = new Array('','','','','','','','','','','',''); G[1] = new Array('','','','','','','','','','','',''); G[2] = new Array('','','','','','','','','','','',''); G[3] = new Array('','','','','','','','','','','',''); G[4] = new Array('','','','','','','','','','','',''); G[5] = new Array('','','','','','','','','','','',''); G[6] = new Array('','','','','','','','','','','',''); G[7] = new Array('','','','','','','','','','','',''); G[8] = new Array('','','','','','','','','','','',''); G[9] = new Array('','','','','','','','','','','',''); G[10] = new Array('','','','','','','','','','','',''); A = new Array(); A[4]='Moses\' brother found that he was talking to a burning ________ on a mountain.'; A[7]='Moses played with his brother but, unfortunately, his brother fell down the ___________ with a gril slave.'; A[8]='Moses\' brother found that his stick turned into a _____________ magically.'; A[9]='After listening to Moses\' oponions for many times, the Pharaoah was about to lose _______________ with Moses.'; D = new Array(); D[1]='Moses thought that he was just speaking the __________ and so the Princess did not need to defend him.'; D[2]='When Moses was 27 years old, he left the ____________ every day and only returned after the sun set.'; D[3]='Knowing that the Pharaoh was angry with Moses, the Princess asked the Pharaoah to _____________ his grandson.'; D[5]='After putting all the offerings into the pyramid, the Pharaoah ordered the architect to __________ up the last exit.'; D[6]='The Pharaoah\'s old advisor ___________ the Pharaoah to let him escape from the pyramid. (* Pay attention to the tense)'; D[8]='Moses knew the name of every _____________ whom he had met with.'; function StartUp(){ BuildExercise(); WriteFeedback(Instructions); DisplayExercise(); } function CheckAnswers(){ var AllCorrect = true; var TotLetters = 0; var CorrectLetters = 0; //Check each letter for (var i=0; i'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return '
©Half-Baked Software. Loading...
Hosted by www.Geocities.ws

'; } //--> //]]>
Hosted by www.Geocities.ws

1