'; 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','','','','F','','C','','',''); L[1] = new Array('C','H','O','U','X','','A','I','O','L','I',''); L[2] = new Array('','','U','','','','R','','N','','','H'); L[3] = new Array('E','','L','','','','','','F','','','U'); L[4] = new Array('S','','E','','T','','','','I','','','I'); L[5] = new Array('C','A','S','S','O','U','L','E','T','','','T'); L[6] = new Array('A','','','','M','','','','','G','','R'); L[7] = new Array('R','','T','','M','O','U','T','A','R','D','E'); L[8] = new Array('G','','A','','E','','','','','A','','S'); L[9] = new Array('O','','T','','','','','','','T','',''); L[10] = new Array('T','R','I','P','E','S','','','','I','',''); L[11] = new Array('S','','N','','','','','','','N','',''); C = new Array(); C[0] = new Array(0,0,1,0,0,0,2,0,3,0,0,0); C[1] = new Array(4,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,6); C[3] = new Array(7,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,8,0,0,0,0,0,0,0); C[5] = new Array(9,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,10,0,0); C[7] = new Array(0,0,11,0,12,0,0,0,0,0,0,0); C[8] = new Array(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); C[10] = new Array(13,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); 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('','','','','','','','','','','',''); A = new Array(); A[4]='Plantes potagères... ou pâtisseries légères et soufflées'; A[5]='Sorte de mayonnaise à l\'ail'; A[9]='Ragoût aux haricots, typique de Toulouse'; A[12]='Célèbre sauce, celle de Dijon est extra-forte'; A[13]='Succulentes à la mode de Caen'; D = new Array(); D[1]='Les mollusques qu\'on prépare "marinière"'; D[2]='Sorte de flan typique de la Bretagne'; D[3]='Préparation de viande d\'oie conservée dans sa graisse'; D[6]='Mollusques à coquille rugueuse, très recherchés'; D[7]='Lents mollusques terrestres, recherchés par les gourmets'; D[8]='Fromage savoyard'; D[10]='Celui qu\'on appelle "dauphinois" est fait de pommes de terre, de lait et de fromage'; D[11]='Les demoiselles qui ont inventé une célèbre tarte aux pommes'; 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... '; } //--> //]]> -->