'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; if (is.CRAPBrowser){OutString=ResolveAllURLs(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('','','','','','','F','','','','','','','','',''); L[1] = new Array('T','H','R','E','E','S','I','S','T','E','R','S','','','',''); L[2] = new Array('','','','','','','R','','','','','','','','',''); L[3] = new Array('C','O','N','F','E','D','E','R','A','C','Y','','','','',''); L[4] = new Array('O','','','','','','K','','','','','','','','',''); L[5] = new Array('U','','','','','D','E','G','A','N','A','W','I','D','A',''); L[6] = new Array('N','','','','','','E','','','','','','','','',''); L[7] = new Array('C','L','A','N','','','P','A','L','I','S','A','D','E','',''); L[8] = new Array('I','','','','','','E','','','','','','','','',''); L[9] = new Array('L','','','','B','I','R','C','H','B','A','R','K','','',''); L[10] = new Array('','','','','','','S','','I','','','','','','',''); L[11] = new Array('','','','L','','','','L','A','C','R','O','S','S','E',''); L[12] = new Array('','','','O','','','','','W','','','','','','',''); L[13] = new Array('','','','N','','','','S','A','P','L','I','N','G','',''); L[14] = new Array('','','','G','','','C','','T','','','','','','',''); L[15] = new Array('','','','H','','S','A','C','H','E','M','S','','','',''); L[16] = new Array('','','','O','','','N','','A','','','N','','','',''); L[17] = new Array('','','','U','','','O','','','','W','A','M','P','U','M'); L[18] = new Array('','','','S','I','N','E','W','','','','R','','','',''); L[19] = new Array('','','','E','','','S','','','','','E','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0); C[1] = new Array(2,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,0,0,0); C[3] = new Array(3,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,0); C[5] = new Array(0,0,0,0,0,4,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); C[7] = new Array(5,0,0,0,0,0,6,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,0,0,0); C[9] = new Array(0,0,0,0,7,0,0,0,8,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,9,0,0,0,10,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); C[13] = new Array(0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,13,0,0,0,0,0,14,0,0,0,0); C[16] = new Array(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,15,0,0,0,0,0); C[18] = new Array(0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(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('','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','',''); A = new Array(); A[2]='What did the Native Americans call corn,beans,and squash'; A[3]='A group of people that join together to help each other'; A[4]='Leader of the Iroquois who helped organizethe Iroquois Confederacy'; A[5]='A group of families who share the same ancestor'; A[6]='A tall wooden fence'; A[7]='A type of tree used to cover longhouses'; A[10]='A type of game that Native Americans play'; A[11]='A young tree that was bent over to make a snare'; A[13]='The chief of a North American Indian tribe'; A[15]='Beads made from shells formerly used by North American Indians as money and for ornament'; A[16]='A tough,strong band or cord used from Native Americans to sew with'; D = new Array(); D[1]='Onondaga'; D[3]='A group of people who meet to talk about and solve problems'; D[8]='A Onondaga chief that called the five groups of the Iroquois together'; D[9]='A type of a house or a shelter that Native Americans lived in'; D[12]='A boat used for transportation by the Native Americans'; D[14]='A trap used by the Native Americans'; 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...'; } //--> //]]> -->