'; //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 + 'Verticalement ' + 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('I','L','','A','R','C','D','E','T','R','I','O','M','P','H','E','','B','N','P'); L[1] = new Array('','O','','','','','','','','','','','','O','','','','','O',''); L[2] = new Array('H','U','G','O','','','','','','P','Y','R','A','M','I','D','E','','T',''); L[3] = new Array('','V','','','','','','','','E','','','','P','','','','','R',''); L[4] = new Array('','R','I','C','H','E','L','I','E','U','','','V','I','E','','B','L','E','U'); L[5] = new Array('D','E','','','','','','','','G','U','Y','','D','','A','','','D',''); L[6] = new Array('I','','B','A','S','T','I','L','L','E','','','R','O','U','S','S','E','A','U'); L[7] = new Array('D','','','','','','','','','O','N','','','U','','T','','','M',''); L[8] = new Array('E','','','M','A','N','S','A','R','T','','','','','','E','','','E',''); L[9] = new Array('R','','R','','','','E','','','','','','','P','A','R','I','S','',''); L[10] = new Array('O','','O','','C','H','I','R','A','C','','','','I','','I','','E','',''); L[11] = new Array('T','','B','','','','N','','','A','','','','A','','X','','N','R','F'); L[12] = new Array('','T','E','R','T','R','E','','','S','','','','F','','','','A','',''); L[13] = new Array('B','','S','','','','','','','T','G','V','','','','L','A','T','I','N'); L[14] = new Array('N','A','P','O','L','E','O','N','','A','','','L','','','E','','','',''); L[15] = new Array('F','','I','','','','','','','','','','Y','','','M','','','',''); L[16] = new Array('','M','E','T','R','O','','','','','','C','O','N','C','O','R','D','E',''); L[17] = new Array('','','R','','','','','','','','','','N','','','N','','','',''); L[18] = new Array('','','R','','','','','','','','','','','','','D','E','L','O','N'); L[19] = new Array('A','L','E','X','A','N','D','R','E','','E','T','O','I','L','E','','','',''); C = new Array(); C[0] = new Array(1,2,0,3,0,0,0,0,0,0,0,0,0,4,0,0,0,5,6,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(7,0,0,0,0,0,0,0,0,8,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,9,0,0,0,0,0,0,0,0,0,0,10,0,0,0,11,0,0,0); C[5] = new Array(12,0,0,0,0,0,0,0,0,13,0,0,0,0,0,14,0,0,0,0); C[6] = new Array(0,0,15,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,18,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,20,0,0,0,0,0,0,0,0,0,0,21,0,0,0,22,0,0); C[10] = new Array(0,0,0,0,23,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0); C[12] = new Array(0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(27,0,0,0,0,0,0,0,0,28,0,0,0,0,0,29,0,0,0,0); C[14] = new Array(30,0,0,0,0,0,0,0,0,0,0,0,31,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,32,0,0,0,0,0,0,0,0,0,33,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,34,0,0,0,0); C[19] = new Array(35,0,0,0,0,0,0,0,0,0,36,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]='Troisième pronom'; A[3]='Au centre de place de l\'Etoile-De Gaulle'; A[5]='Banque Nationale de Paris'; A[7]='Un célèbre Victor de la litterature'; A[8]='Dans la cour du Louvre'; A[9]='Le Cardinal des mousquetaires'; A[10]='C\'est en rose dans une célèbre chanson'; A[11]='Une des couleurs du drapeau français'; A[12]='Préposition'; A[13]='Nom très diffusé en France'; A[15]='Prison détruite par le peuple pendant la Révolution'; A[16]='Un Jean-Jacques dont les idéés préparèrent la Révolution'; A[17]='Pronom pour nous et vous'; A[18]='Architecte de place Vendôme'; A[21]='La capitale de la France'; A[23]='Le président de la France'; A[25]='Nouvelle Revue Française'; A[26]='Petite place aux pieds du Sacré-Coeur'; A[28]='Train Grande Vitesse'; A[29]='Le célèbre Quartier des étudiants'; A[30]='L\'empereur toujours aimé des Frrançais'; A[32]='Réseau souterrain'; A[33]='Avion franco-britannique'; A[34]='Un Alain du cinéma'; A[35]='Un pont de Paris porte son nom'; A[36]='En son centre il y a l\'Arc de Triomphe'; D = new Array(); D[2]='Un des musées les plus importants du monde'; D[4]='Un ancien président de la République'; D[6]='La Basilique sur l\'Île de la Cité'; D[8]='Une usine d\'automobiles'; D[12]='Il inventa l\'Encyclopedie'; D[14]='Un héros gaulois des bandes dessinées'; D[19]='Traverse Paris'; D[20]='Un chef de la Rèvolution'; D[21]='L\'interprète de \'La vie en rose\''; D[22]='Une branche du Parlement français'; D[24]='Top model'; D[27]='Bibliothèque Nationale de France'; D[29]='Journal du soir'; D[31]='La gare où arrivent les trains d\'Italie'; 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... '; } //--> //]]> -->