'; 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('','M','','','','','','','','','','','H','',''); L[1] = new Array('V','A','L','','','','','','S','T','Y','L','O','',''); L[2] = new Array('','R','','J','U','S','','','','','','','T','',''); L[3] = new Array('S','I','D','A','','','','','','','F','R','E','R','E'); L[4] = new Array('T','','','P','O','R','T','A','B','L','E','','L','',''); L[5] = new Array('A','F','R','O','','','','','','','R','','','',''); L[6] = new Array('G','','','N','','','','','P','','M','A','T','C','H'); L[7] = new Array('E','','','','','C','O','P','I','N','E','','','',''); L[8] = new Array('','','','','','H','','','E','','','','N','',''); L[9] = new Array('','B','','','','O','','','C','O','U','S','I','N','E'); L[10] = new Array('','A','C','T','E','U','R','','E','','','','E','',''); L[11] = new Array('','C','','','','E','','','','','O','N','C','L','E'); L[12] = new Array('','','T','A','N','T','E','','A','','','','E','',''); L[13] = new Array('','','','','','T','','','G','','','','','',''); L[14] = new Array('','C','A','S','S','E','T','T','E','','','','','',''); C = new Array(); C[0] = new Array(0,1,0,0,0,0,0,0,0,0,0,0,2,0,0); C[1] = new Array(3,0,0,0,0,0,0,0,4,0,0,0,0,0,0); C[2] = new Array(0,0,0,5,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(6,0,0,0,0,0,0,0,0,0,7,0,0,0,0); C[4] = new Array(0,0,0,8,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(9,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,10,0,11,0,0,0,0); C[7] = new Array(0,0,0,0,0,12,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,13,0,0); C[9] = new Array(0,14,0,0,0,0,0,0,15,0,0,0,0,0,0); C[10] = new Array(0,16,0,0,0,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,0,0,0,0,0,0,17,0,0,0,0); C[12] = new Array(0,0,18,0,0,0,0,0,19,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); C[14] = new Array(0,20,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('','','','','','','','','','','','','','',''); A = new Array(); A[3]='Le métro automatique de Lille'; A[4]='Tu t\'en sers pour écrire tes devoirs'; A[5]='J\'aime particulièrement celui de fruits'; A[6]='La syndrome d\'immunité déficitaire acquise'; A[7]='Le fils de ton père et de ta mère, qui n\'est pas toi...'; A[8]='Le téléphone que tu as dans ta poche'; A[9]='Abrégé pour dire "d\'origine africaine"'; A[11]='Deux équipes de football disputent un ...'; A[12]='Le féminin de copain'; A[15]='La fille de ton oncle est ta...'; A[16]='Il joue sur la scène des théâtres ou d\'un film'; A[17]='Le frère de ton père ou de ta mère est ton...'; A[18]='La soeur de ton père ou de ta mère est ta...'; A[20]='Tu la mets dans le magnétophone pour écouter de la musique'; D = new Array(); D[1]='Synonime d\'époux'; D[2]='Tu y passes la nuit quand tu es en voyage'; D[5]='Sa capitale est Tokyo'; D[6]='Un cours pour apprendre la récitation ou autre chose'; D[7]='Une maison à la campagne où on élève des vaches, des poules, des lapins...'; D[10]='Oeuvre de théâtre'; D[12]='Tu le dis quand tu es content ou enthousiaste pour quelque chose'; D[13]='La fille de ton frère est ta...'; D[14]='L\'examen à la fin du lycée'; D[19]='Si on veut savoir quand tu es né, on te demande: "Tu as quel...?"'; 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... '; } //--> //]]> -->