'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; //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 += '
'; 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('D','I','A','M','O','N','D','S','','','B','','','',''); L[1] = new Array('','','','','','E','','','','G','O','L','D','',''); L[2] = new Array('','','','B','','C','','','','','N','','','','P'); L[3] = new Array('','','','I','','K','','','','','E','','','','E'); L[4] = new Array('','','O','R','N','A','M','E','N','T','S','','','','A'); L[5] = new Array('','','','T','','C','','','','','','','','','R'); L[6] = new Array('','','','H','','E','','F','','','','','','','L'); L[7] = new Array('G','E','M','S','','S','','E','A','R','R','I','N','G','S'); L[8] = new Array('','','','T','','','','A','','','','','','',''); L[9] = new Array('','','','O','','','','T','','','','','','',''); L[10] = new Array('','','','N','','','','H','','R','','','','',''); L[11] = new Array('R','','B','E','E','T','L','E','W','I','N','G','S','',''); L[12] = new Array('U','','','','','','','R','','N','','','','',''); L[13] = new Array('B','R','A','C','L','E','T','S','','G','','','','',''); L[14] = new Array('Y','','','','','','','','','S','I','L','V','E','R'); C = new Array(); C[0] = new Array(1,0,0,0,0,2,0,0,0,0,3,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,4,0,0,0,0,0); C[2] = new Array(0,0,0,5,0,0,0,0,0,0,0,0,0,0,6); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,7,0,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,0,0); C[6] = new Array(0,0,0,0,0,0,0,8,0,0,0,0,0,0,0); C[7] = new Array(9,0,0,0,0,0,0,10,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,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,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,11,0,0,0,0,0); C[11] = new Array(12,0,13,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); C[13] = new Array(14,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,0,0,15,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('','','','','','','','','','','','','','',''); A = new Array(); A[1]='Sparkling, clear, gems'; A[4]='A heavy yellow metal'; A[7]='what you put on a tree'; A[9]='a precious stone cut and polished for use of a jewel'; A[10]='you can find this on the lobe of your ear'; A[13]='Indians made jewelry from these'; A[14]='a band you wear around your wrist'; A[15]='a white precious metal that is a chemical element'; D = new Array(); D[2]='you wear it around your neck '; D[3]='cavemen used these for jewelry'; D[5]='goes with the month you were born in'; D[6]='smooth, white beads'; D[8]='birds have these'; D[11]='you wear it around your fingers'; D[12]='a precious stone that is red'; 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...'; } //--> //]]> -->