'; 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('','','','','','','','','','','','','R','','','','P','','','J'); L[1] = new Array('','','','','','','','','','','','A','U','S','T','R','A','L','I','A'); L[2] = new Array('','','','','','','','S','','','','','S','','','','K','','','P'); L[3] = new Array('','','','I','R','E','L','A','N','D','','','S','','','','I','','','A'); L[4] = new Array('','','','','','','','U','','','','','I','','','','S','','','N'); L[5] = new Array('','H','O','L','L','A','N','D','','C','U','B','A','','','','T','','',''); L[6] = new Array('','','','','','','','I','','','S','','','','','','A','','',''); L[7] = new Array('','','M','A','D','A','G','A','S','C','A','R','','C','H','I','N','A','',''); L[8] = new Array('','','','','','','','R','','','','','','','','T','','R','',''); L[9] = new Array('','','','E','N','G','L','A','N','D','','','','','','A','','M','',''); L[10] = new Array('','','','','E','','','B','','','','','','','','L','','E','',''); L[11] = new Array('','','','','W','','','I','N','D','I','A','','T','','Y','','N','',''); L[12] = new Array('','','','','Z','','','A','','','','','','H','','','','I','',''); L[13] = new Array('','','','','E','','','','','M','','','C','A','N','A','D','A','',''); L[14] = new Array('','','B','R','A','Z','I','L','','E','','','','I','','','','','',''); L[15] = new Array('E','','','','L','','','','','X','','','','L','','','','','',''); L[16] = new Array('G','E','R','M','A','N','Y','','','I','','F','R','A','N','C','E','','',''); L[17] = new Array('Y','','','','N','','','','','C','','','','N','','','','','',''); L[18] = new Array('P','','','','D','','','','P','O','L','A','N','D','','','','','',''); L[19] = new Array('T','','','','','','','','','','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,3); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,6,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,7,0,0,0,0,0,0,0,8,9,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,10,0,0,0,0,0,0,0,0,0,0,11,0,12,0,13,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,14,15,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,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,0,16,0,0,0,0,0,17,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,18,0,0,19,0,0,0,0,0,0,0); C[14] = new Array(0,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(22,0,0,0,0,0,0,0,0,0,0,23,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,24,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,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[4]='This country is the only country that is also a continent.'; A[6]='This country is also known as the Emerald Isle.'; A[7]='This country has more windmills than any other country.'; A[8]='What island country is located just south of Florida.'; A[10]='This island country is off the coast of the African mainland.'; A[11]='In this country ping-pong is the most popular sport.'; A[14]='Westminister Abbey is located in this country.'; A[16]='This country has the worlds most expensive tomb called the Taj Mahal.'; A[19]='This country has the C.N. Tower.'; A[20]='Biggest grower/exporter of coffee.'; A[22]='Frankfurters started out in this country.'; A[23]='This country was the first to start ballet.'; A[24]='The name of this country means \'plain\' or \'field\'.'; D = new Array(); D[1]='This country is the largest country in the world.'; D[2]='Keenjhar, a lake, is located in this country.'; D[3]='_______ is the land of the rising sun.'; D[5]='This country produces more oil than any other country in the world.'; D[9]='This country has the third largest population.'; D[12]='This country is boot shaped.'; D[13]='Some people believe Noahs Ark is in this country.'; D[15]='People in this country eat more butter and meat per person than any other country.'; D[17]='_______ is known as the land of the free.'; D[18]='People in this country wear wide brimmed hats called "sombreros".'; D[21]='This country has the longest recorded history.'; 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...'; } //--> //]]> -->