'; 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 + '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('A','L','L','E','M','A','G','N','E','','M','E','X','I','Q','U','E','','',''); L[1] = new Array('','','','','O','','','','','F','','G','','','','','','','',''); L[2] = new Array('','E','P','A','U','L','E','','','R','','Y','','','','','','','','O'); L[3] = new Array('','','','','S','','','','','I','','P','','C','O','L','L','I','E','R'); L[4] = new Array('','','','','S','','','C','','T','','T','','O','','','','','','T'); L[5] = new Array('M','O','U','L','E','S','','A','P','E','R','I','T','I','F','','','','','H'); L[6] = new Array('','','','I','','','','P','','S','','E','','F','','','V','E','L','O'); L[7] = new Array('J','A','M','B','E','','','I','','','','N','','F','','','','','','G'); L[8] = new Array('','','','R','','','','T','','','','','','E','','S','','B','','R'); L[9] = new Array('V','O','Y','A','G','E','','A','','','','','','U','','Y','','A','','A'); L[10] = new Array('','','','I','','','','L','','','','','','R','','M','','N','','P'); L[11] = new Array('','P','A','R','I','S','I','E','N','N','E','','','','','P','','L','','H'); L[12] = new Array('','','','I','','','','','','','','B','','','','A','','I','','E'); L[13] = new Array('','','S','E','C','R','E','T','A','R','I','A','T','','','T','','E','',''); L[14] = new Array('','','','','','','','H','','','','L','','','','H','','U','',''); L[15] = new Array('I','D','E','N','T','I','T','E','','S','T','A','G','I','A','I','R','E','',''); L[16] = new Array('','','','','','','','A','','','','D','','','','Q','','','',''); L[17] = new Array('','S','O','I','X','A','N','T','E','','R','E','S','T','A','U','R','A','N','T'); L[18] = new Array('','','','','','','','R','','','','U','','','','E','','','',''); L[19] = new Array('L','Y','C','E','E','N','N','E','','','G','R','E','C','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,2,0,0,0,0,0,3,4,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(10,0,0,11,0,0,0,12,0,0,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,13,0,0,0); C[7] = new Array(14,0,0,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,15,0,16,0,0); C[9] = new Array(17,0,0,0,0,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,18,0,0,0,0,0,0,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,19,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,20,0,0,0,0,21,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,0,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(22,0,0,0,0,0,0,0,0,23,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,24,0,0,0,0,0,0,0,0,25,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,0,0,0,0,0); C[19] = new Array(26,0,0,0,0,0,0,0,0,0,27,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]='Le Pays dont la capitale est Berlin'; A[3]='Le Pays des "sombreros"'; A[6]='Partie supérieure du bras, où il s\'attache au thorax'; A[8]='Bijou, ornement que l\'on porte autour du cou'; A[10]='Les mollusques qu\'on prépare "marinière"'; A[12]='Boisson qu\'on prend avant le repas'; A[13]='Synonime de bicyclette'; A[14]='Partie inférieur de l\'homme, du genou au pied'; A[17]='Si tu vas à Paris, tu pars en...'; A[18]='Femme qui est née à Paris'; A[20]='Le lieu de travail de la secrétaire'; A[22]='La carte d\'... indique le nom, le prénom, la situation de famille, etc.'; A[23]='La personne qui fait un stage'; A[24]='25 x 3 - 20 + 5 ='; A[25]='On peut choisir le menu ou la carte'; A[26]='Jeune fille qui fréquente le lycée'; A[27]='Le masculin de grecque'; D = new Array(); D[2]='Celle au chocolat est très bonne'; D[4]='Habitant du Pays dont la capitale est Le Caire'; D[5]='En Belgique, elles accompagnent traditionnellement les moules'; D[7]='Pour bien écrire, il faut respecter ses règles'; D[8]='Tu y vas quand tu as besoin de te faire couper les cheveux'; D[9]='Une grande lettre ou la ville la plus importante d\'un Pays'; D[11]='Tu y vas pour acheter des livres'; D[15]='Une personne aimable, qui te plaît spontanément'; D[16]='Ensemble d\'agglomérations qui entourent une grande ville'; D[19]='La traduction française de "walkman"'; D[21]='Tu peux assister à des pièces, des comédies, etc.'; 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... '; } //--> //]]> -->