'; 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('','','N','','','','','','E','','','',''); L[1] = new Array('','','O','','A','B','U','N','D','A','N','C','E'); L[2] = new Array('','','N','','','','','','I','','','O',''); L[3] = new Array('','','P','','','','','','B','','','N',''); L[4] = new Array('','V','E','R','S','A','T','I','L','E','','S',''); L[5] = new Array('','','R','','','','','','E','','','U',''); L[6] = new Array('','','I','','','','','','','','','M',''); L[7] = new Array('R','E','S','T','R','A','I','N','T','','','P',''); L[8] = new Array('','','H','','','','','','','','','T',''); L[9] = new Array('','F','A','T','','','','','','','','I',''); L[10] = new Array('','','B','','','','','','','','','O',''); L[11] = new Array('M','A','L','N','U','T','R','I','T','I','O','N',''); L[12] = new Array('','','E','','','','','','','','','',''); L[13] = new Array('','','S','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,1,0,0,0,0,0,2,0,0,0,0); C[1] = new Array(0,0,0,0,3,0,0,0,0,0,0,4,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,5,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(6,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,0); C[9] = new Array(0,7,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(8,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,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('','','','','','','','','','','','',''); G[11] = new Array('','','','','','','','','','','','',''); G[12] = new Array('','','','','','','','','','','','',''); G[13] = new Array('','','','','','','','','','','','',''); A = new Array(); A[3]='n. a quantity that is more than enough; a very large amount.'; A[5]='adj. having many uses.'; A[6]='n. a thing that limits or controls sb/sth.'; A[7]='n. greasy substance in the bodies of animals and humans.'; A[8]='n. a condition resulting from a lack of food or the right type of food.'; D = new Array(); D[1]='n. foods that don\'t spoil or go bad quickly.'; D[2]='adj. fit or suitable to be eaten.'; D[4]='n. the using up of food, energy, resources, etc. Ex.: Gas and oil _____ always increases in cold weather.'; 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