'; 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('','','','','','','','V','I','N','','','E','P','A','U','L','E','','A'); L[1] = new Array('','B','','','','','','E','','','','','','R','','','','','','U'); L[2] = new Array('','O','','','','B','O','U','T','E','I','L','L','E','S','','','','','B'); L[3] = new Array('D','U','C','','','U','','V','','','','','','T','','B','A','G','U','E'); L[4] = new Array('','R','','R','I','C','H','E','L','I','E','U','','R','','A','','','','R'); L[5] = new Array('','R','','','','K','','','','','','','F','E','L','T','O','N','','G'); L[6] = new Array('','E','M','P','O','I','S','O','N','N','E','','','','','E','','','','E'); L[7] = new Array('','A','','','','N','','','','','','','','','V','A','L','E','T',''); L[8] = new Array('','U','','','','G','','','','','','','','','','U','','','U',''); L[9] = new Array('','','','C','','H','','D','','','','','','','V','','','L','Y','S'); L[10] = new Array('','','B','O','N','A','C','I','E','U','X','','A','','O','','','','A',''); L[11] = new Array('','J','','N','','M','','A','','','','','N','','C','','','','U',''); L[12] = new Array('','O','','S','','','','M','','','','','N','','A','','','R','','F'); L[13] = new Array('D','A','R','T','A','G','N','A','N','','A','G','E','N','T','','','I','','A'); L[14] = new Array('','I','','A','','','','N','','P','','A','','','I','','','C','','U'); L[15] = new Array('','L','','N','','A','C','T','I','O','N','S','','P','O','R','T','H','O','S'); L[16] = new Array('','L','','C','','','','S','','E','','C','','','N','','','E','','S'); L[17] = new Array('','I','','E','P','E','E','','','L','','O','','','','','','','','E'); L[18] = new Array('','E','','','','','','','R','E','I','N','E','','A','R','A','M','I','S'); L[19] = new Array('T','R','E','V','I','L','L','E','','','','','','','','','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,0,0,0,1,0,0,0,0,2,3,0,0,0,0,0,4); C[1] = new Array(0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0); C[4] = new Array(0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0); C[6] = new Array(0,11,0,0,0,0,0,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,12,0,0,0,13,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,14,0,0,0,15,0,0,0,0,0,0,16,0,0,17,0,0); C[10] = new Array(0,0,18,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0); C[11] = new Array(0,20,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,0,0,0,0,0,0,21,0,22); C[13] = new Array(23,0,0,0,0,0,0,0,0,0,24,25,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,27,0,0,0,0,0,0,0,28,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,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,30,0,0,0,0,0,31,0,0,0,0,0); C[19] = new Array(32,0,0,0,0,0,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('','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Le valet de d\'Artagnan boit le ... empoisonné destiné à son maître'; A[2]='Sur l\'... de Milady est gravée une fleur de lys'; A[6]='D\'Artagnan trouve Porthos au lit entouré d\'assiettes et de ... vides'; A[7]='Le titre de noblesse de Buckingham'; A[8]='La reine l\'offre à d\'Artagnan en signe de reconnaissance'; A[9]='Le cardinal'; A[10]='L\'officier qui tombe amoureux de Milady'; A[11]='Le vin que boit le valet de d\'Artagnan est...'; A[12]='Celui de Buckingham s\'appelle Patrice'; A[17]='La fleur gravée sur l\'épaule de Milady'; A[18]='Le nom de Constance'; A[23]='Son rêve est de devenir mousquetaire'; A[24]='Milady est l\'... du cardinal Richelieu'; A[27]='Pour devenir mousquetaire il faut accomplir des ... de valeur'; A[28]='A\' la fin de l\'histoire, il se marie'; A[29]='Le bourreau l\'utilise pour exécuter Milady'; A[30]='Anne d\'Autriche est la ... de France'; A[31]='Le mousquetaire qui a la vocation religieuse'; A[32]='Le capitaine des mousquetaires'; D = new Array(); D[1]='Porthos épouse une riche ...'; D[3]='Aramis veut le devenir pour suivre sa vocation'; D[4]='Les mousquetaires escortent le cardinal à l\'... du Colombier-Rouge'; D[5]='Il exécute Milady'; D[6]='L\'amoureux de la reine'; D[8]='Le bourreau y fait monter Milady'; D[13]='A\' l\'auberge du Colombier-Rouge il y a une poêle dont le ... est cassé'; D[14]='Le prénom de Madame Bonacieux'; D[15]='La reine les donne à Buckingham'; D[16]='Celle d\'Aramis est de devenir prêtre'; D[19]='Le prénom de la reine'; D[20]='Buckingham le fait appeler'; D[21]='La veuve qu\'épouse Porthos est très ...'; D[22]='Athos a été accusé de payer avec de ... pièces'; D[25]='Souvent, d\'Artagnan est appelé le ...'; D[26]='A un tuyau cassé par la moitié'; 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... '; } //--> //]]> -->