'; 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('','','','C','H','A','M','P','I','O','N','','','','','','','','',''); L[1] = new Array('','','','O','','W','','','','','','','','','','','','','',''); L[2] = new Array('','','','N','','A','','','','','','','','P','','','','','',''); L[3] = new Array('P','E','R','F','O','R','M','A','N','C','E','','','E','','','','','',''); L[4] = new Array('','','','I','','D','','','','','','','','R','','D','','','',''); L[5] = new Array('','','','D','','','','','','','','','','S','','U','','','',''); L[6] = new Array('','','','E','','','','','','','','','','I','','P','','','',''); L[7] = new Array('','','','N','','','','','','','','','','S','','L','','','',''); L[8] = new Array('','V','I','C','A','R','I','O','U','S','','','','T','','I','','','',''); L[9] = new Array('','','','E','','','','','','U','','O','V','E','R','C','O','M','E',''); L[10] = new Array('','','','','','','','P','','B','','','','N','','A','','','',''); L[11] = new Array('','T','O','U','G','H','N','E','S','S','','','','C','','T','','','',''); L[12] = new Array('','','','','','','','R','','T','','','','E','','E','','','',''); L[13] = new Array('','','','','','','','S','','I','','','','','','','','','',''); L[14] = new Array('','','','','','','','E','N','T','E','R','T','A','I','N','M','E','N','T'); L[15] = new Array('','','','','','','','V','','U','','','','','','','','','',''); L[16] = new Array('','','','','','','','E','','T','','','','','','','','','',''); L[17] = new Array('','','','','','','','R','','E','','','','','','','','','',''); L[18] = new Array('','','','','','','','E','','','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,0,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,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,0,3,0,0,0,0,0,0); C[3] = new Array(4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,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,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,6,0,0,0,0,0,0,0,7,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,8,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,10,0,0,0,0,0,0,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,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,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('','','','','','','','','','','','','','','','','','','',''); G[14] = new Array('','','','','','','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='An athlete who has won the prize after defeating all his/her oponents.'; A[4]='The execution or accomplishment of a given work.'; A[6]='Something done by imitation of someone else.'; A[8]='To gain the victory over something, usually challenging.'; A[10]='A mental trait that involves accepting risk and trying to win necessarily.'; A[11]='The act of amusing people with something pleasant.'; D = new Array(); D[1]='The act believing in oneself and one\'s abilities.'; D[2]='A prize received after an achievement.'; D[3]='The act of continuing something inspite of oppoisition.'; D[5]='To reproduce something exactly as the original one.'; D[7]='A person or thing acting or serving in place of someone else.'; D[9]='To be determined to continue doing something despite the difficulties.'; 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