'; 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('','P','','G','','','','','','','','','B','',''); L[1] = new Array('M','A','G','A','Z','I','N','E','','C','A','H','I','E','R'); L[2] = new Array('','V','','R','','','','','','','','','S','',''); L[3] = new Array('','I','','A','','B','R','E','T','A','G','N','E','',''); L[4] = new Array('','L','','G','','','','','R','','','','','',''); L[5] = new Array('','L','','E','','S','','M','A','M','I','E','','',''); L[6] = new Array('','O','','','','T','','','V','','','','','',''); L[7] = new Array('E','N','T','H','O','U','S','I','A','S','M','E','','D',''); L[8] = new Array('C','','','','','D','','','I','','O','','','E',''); L[9] = new Array('R','','','','','I','','','L','','N','','','N',''); L[10] = new Array('I','','M','A','\u00C7','O','N','','L','','T','','','T',''); L[11] = new Array('V','','','','','','','','E','','A','','','I',''); L[12] = new Array('A','','R','O','U','T','I','E','R','','G','','','S',''); L[13] = new Array('I','','','','','','','','','','N','','','T',''); L[14] = new Array('N','','B','I','B','L','I','O','T','H','E','Q','U','E',''); C = new Array(); C[0] = new Array(0,1,0,2,0,0,0,0,0,0,0,0,3,0,0); C[1] = new Array(4,0,0,0,0,0,0,0,0,5,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,6,0,0,7,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); C[5] = new Array(0,0,0,0,0,8,0,9,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); C[7] = new Array(10,0,0,0,0,0,0,0,0,0,11,0,0,12,0); C[8] = new Array(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); C[10] = new Array(0,0,13,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,0,0,0,0,0); C[12] = new Array(0,0,14,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); C[14] = new Array(0,0,15,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[4]='Publication périodique illustrée'; A[5]='Tu l\'utilises pour faire tes exercices'; A[6]='La région de Brest'; A[9]='Pour appeler affectueusement sa grand-mère'; A[10]='Quand on te propose quelque chose qui te plaît, tu acceptes avec...'; A[13]='Il construit des maisons'; A[14]='Il conduit les gros camions, les TIR'; A[15]='Tu y vas pour consulter des livres, des encyclopédies...'; D = new Array(); D[1]='Maisonnette, petite villa'; D[2]='Pour mettre la voiture à l\'abri'; D[3]='Tu la donnes à un ami/une amie que tu aimes bien'; D[7]='Pour un écolier, c\'est le synonime d\'étudier'; D[8]='Mini-appartement d\'une seule pièce'; D[10]='Il écrit des livres'; D[11]='Tu y vas pour faire du ski'; D[12]='Tu y vas pour te faire soigner les dents'; 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... '; } //--> //]]> -->