'; 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 + 'Verticales ' + 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','O','U','S','Q','U','E','T','A','I','R','E','','',''); L[1] = new Array('','','','','','','M','','','','','','','',''); L[2] = new Array('','','','','','','B','A','U','D','R','I','E','R',''); L[3] = new Array('','M','','','','','A','','','','','','','',''); L[4] = new Array('','O','','','','','R','I','C','H','E','L','I','E','U'); L[5] = new Array('','U','','','','','R','','','','','','','',''); L[6] = new Array('','C','A','P','I','T','A','I','N','E','','','','',''); L[7] = new Array('','H','','','','','S','','','','','','','',''); L[8] = new Array('','O','','','A','','S','','','','','','','',''); L[9] = new Array('','I','','','T','R','E','V','I','L','L','E','','',''); L[10] = new Array('','R','','','H','','','','','','','S','','',''); L[11] = new Array('','','','','O','','','','','','','C','','',''); L[12] = new Array('D','U','E','L','S','','M','A','N','T','E','A','U','',''); L[13] = new Array('','','','','','','','','','','','L','','',''); L[14] = new Array('','','','','','G','','','','','','I','','',''); L[15] = new Array('','','','','','A','','C','O','U','V','E','N','T',''); L[16] = new Array('','','','','','S','','O','','','','R','','',''); L[17] = new Array('','','','','','C','','L','','','','','','',''); L[18] = new Array('','','','B','R','O','D','E','','','','','','',''); L[19] = new Array('','','','L','','N','','R','A','G','E','','','',''); L[20] = new Array('','','','E','','','','E','','','','','','',''); L[21] = new Array('','','','S','','','','','','','','','','',''); L[22] = new Array('','','','S','','','','','','','','','','',''); L[23] = new Array('V','A','L','E','U','R','','','','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,0,2,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,3,0,0,0,0,0,0,0,0); C[3] = new Array(0,4,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,5,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,6,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,7,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,8,0,0,0,0,0,0,9,0,0,0); C[10] = new Array(0,0,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,0,0,0,0,0); C[12] = new Array(10,0,0,0,0,0,11,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,0,0,0,12,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,13,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); C[17] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,14,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(0,0,0,0,0,0,0,15,0,0,0,0,0,0,0); C[20] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[21] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[23] = new Array(16,0,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('','','','','','','','','','','','','','',''); G[15] = new Array('','','','','','','','','','','','','','',''); G[16] = new Array('','','','','','','','','','','','','','',''); G[17] = new Array('','','','','','','','','','','','','','',''); G[18] = new Array('','','','','','','','','','','','','','',''); G[19] = new Array('','','','','','','','','','','','','','',''); G[20] = new Array('','','','','','','','','','','','','','',''); G[21] = new Array('','','','','','','','','','','','','','',''); G[22] = new Array('','','','','','','','','','','','','','',''); G[23] = new Array('','','','','','','','','','','','','','',''); A = new Array(); A[1]='D\'Artagnan veut devenir ...'; A[3]='Celui de Porthos semble tout en or'; A[5]='Le nom du cardinal ennemi des mousquetaires'; A[6]='M. de Tréville est le ... des mousquetaires'; A[8]='Le nom du capitaine des mousquetaires'; A[10]='M. de Tréville dit: "J\'en ai assez de ces ...!"'; A[11]='D\'Artagnan se trouve prisonnier sous le ... de Porthos'; A[13]='D\'Artagnan a rendez-vous pour les duels devant le ... des Carmes-Deschaux'; A[14]='Le mouchoir que Aramis tente de cacher est ...'; A[15]='Quand d\'Artagnan le heurte, Athos est pâle de ... et de colère'; A[16]='Pour devenir mousquetaire, d\'Artagnan devra accomplir des actions de ...'; D = new Array(); D[2]='Quand d\'Artagnan ramasse le mouchoir brodé, Aramis est très ...'; D[4]='Le ... brodé appartient à une dame dont Aramis est amoureux'; D[7]='Le mousquetaire qui est blessé au bras s\'appelle ...'; D[9]='D\'Artagnan heurte Athos en descendant l\'... du palais de M. de Tréville'; D[12]='D\'Artagnan vien de Gascogne, il est ...'; D[13]='Quand Aramis s\'adresse à d\'Artagnan, il est rouge de ...'; D[14]='Athos est ... au bras'; 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... '; } //--> //]]> -->