'; 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('Y','E','L','L','O','W','-','T','A','N','G','','','','','','','','',''); L[1] = new Array('','U','','I','','R','','H','','O','','','','','','','','','',''); L[2] = new Array('','R','','M','','A','','A','','R','O','C','K','W','E','E','D','','',''); L[3] = new Array('','O','','U','','C','','L','','I','','','','','','','','','',''); L[4] = new Array('','P','','','','K','','L','','','','','','','','','','','',''); L[5] = new Array('','E','G','O','','','','U','N','I','T','E','D','-','S','T','A','T','E','S'); L[6] = new Array('','','A','S','C','O','','S','','C','','L','','','E','','L','','U',''); L[7] = new Array('','','S','T','I','P','E','','','E','','K','','','A','','G','','C',''); L[8] = new Array('','','-','','','','','','','-','','-','','','W','','A','','H',''); L[9] = new Array('','','B','','','','','','','C','','K','','','E','','E','','E',''); L[10] = new Array('','B','L','A','D','D','E','R','','R','','E','','','E','','','','U',''); L[11] = new Array('','','A','-','A','L','A','','','E','','L','','','D','','','','M',''); L[12] = new Array('','','D','O','R','I','E','S','','A','','P','','','','','','','A',''); L[13] = new Array('','','D','','','','','','','M','','','','','','','','','',''); L[14] = new Array('A','P','E','X','','','','','','','','','','','','','','','',''); L[15] = new Array('L','','R','E','D','-','A','L','G','A','E','','','','','','','','',''); L[16] = new Array('G','','','','U','','L','','','G','','','','','','','','','',''); L[17] = new Array('A','','','','L','','G','','','A','','','','','','','','','',''); L[18] = new Array('','','','','S','','I','','','R','O','C','K','-','M','O','S','S','',''); L[19] = new Array('S','T','I','P','E','','N','','','','','','','','','','','','',''); C = new Array(); C[0] = new Array(1,2,0,3,0,4,0,5,0,6,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,7,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,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,0,0,0,0); C[5] = new Array(0,8,9,10,0,0,0,11,0,12,0,13,0,0,14,0,15,0,16,0); C[6] = new Array(0,0,17,0,18,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,20,0,0,0,0,0,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,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,0,0,0,0,0); C[10] = new Array(0,21,0,22,23,24,25,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,27,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(28,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,30,0,31,0,32,0,0,33,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,34,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(35,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('','','','','','','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='found in Northern Atlantic of Europe'; A[7]='found in USA, and Northern Europe, used for food '; A[8]='Japanese seaweed used for food'; A[11]='a country with 50 eating states'; A[17]='found in Ireland, used for food'; A[20]='the stem of the seaweed'; A[21]='found in Western Europe, used for food'; A[26]='Hawaiian Seaweed used for food'; A[27]='wooden boats with a flat bottom used to harvest seaweed'; A[28]='the highest point of a wave'; A[30]='a type of algae with a rubbery, springy quality contaning the pigments phycocyanin and phycoerythrin'; A[34]='a type of seweed found in the Western Hemishphire used for food and as a gelling agent'; A[35]='the stem of the seaweed'; D = new Array(); D[2]='one of the seven major continents'; D[3]='seaweed found in Hawaii used for food'; D[4]='found in USA used for food'; D[5]='reffering to the entire seaweed plant'; D[6]='seaweed used for sushi'; D[9]='hollow gas filled structures to help keep the photosynthetic structures of seaweed of the seaweed boyabt so they are able to absorb energy from the sun'; D[10]='x'; D[12]='a type of food which contains seaweed'; D[13]='found in the Pacific coast of Northern America, used for food'; D[14]='a type of plant which is grown in the ocean'; D[15]='another name for seaweed'; D[16]='a type of seaweed that is tan to yellowish brown in color, belonging to classification of red algae'; D[18]='x'; D[19]='x'; D[22]='x'; D[23]='x'; D[24]='x'; D[25]='x'; D[28]='latin plural of algae'; D[29]='x'; D[31]='red seaweed used as food and medicine'; D[32]='a substance extracted from brown algae that helps suspend solid materials within liquid materials'; D[33]='a substance extracted from red algae used as a gelling and stablizing agent in food'; 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...'; } //--> //]]> -->