'; 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('','','A','V','O','C','A','T','E','','','E','S','P','A','G','N','O','L',''); L[1] = new Array('','','','','','H','','','','','','','E','','R','','','','',''); L[2] = new Array('E','T','U','D','I','A','N','T','E','','M','','R','','C','H','A','T','T','E'); L[3] = new Array('','','','','','N','','','','','A','','V','','H','','','','',''); L[4] = new Array('','','O','','','T','','','H','','R','','E','','I','','','','R',''); L[5] = new Array('','D','U','C','H','E','S','S','E','','Q','','U','','T','','','','E',''); L[6] = new Array('','','V','','','U','','','U','','U','','S','','E','','','','I',''); L[7] = new Array('','','R','','','S','P','O','R','T','I','V','E','','C','L','I','E','N','T'); L[8] = new Array('M','A','I','T','R','E','','','E','','S','','','','T','','','','E',''); L[9] = new Array('','','E','','','','','','U','','E','','','','E','','','','',''); L[10] = new Array('','P','R','I','N','C','E','S','S','E','','','','','','','P','','',''); L[11] = new Array('R','','','','','','','','E','','','','','B','','','R','','A',''); L[12] = new Array('O','','','','','','','','','','','','P','A','T','R','O','N','N','E'); L[13] = new Array('I','N','S','T','I','T','U','T','E','U','R','','','R','','','F','','G',''); L[14] = new Array('','','','','','','','','','','','C','','O','','','E','','L',''); L[15] = new Array('','C','O','M','T','E','S','S','E','','','O','','N','','','S','','A',''); L[16] = new Array('','','','','','','','','','J','U','M','E','N','T','','S','','I',''); L[17] = new Array('','','','','','','','','','','','T','','E','','','E','','S',''); L[18] = new Array('A','U','T','R','I','C','H','I','E','N','N','E','','','','','U','','E',''); L[19] = new Array('','','','','','','','','','','','','','','','','R','','',''); C = new Array(); C[0] = new Array(0,0,1,0,0,2,0,0,0,0,0,3,4,0,5,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(6,0,0,0,0,0,0,0,0,0,7,0,0,0,8,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,9,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,11,0); C[5] = new Array(0,12,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,13,0,0,0,0,0,0,0,0,14,0,0,0,0,0); C[8] = new Array(15,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,0,0,0,0,0,0,0,0,0,0,0,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,0,17,0,0,0); C[11] = new Array(18,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,20,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0); C[13] = new Array(22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0); C[15] = new Array(0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,25,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,0,0,0,0,0); C[18] = new Array(26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(0,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 féminin de avocat'; A[3]='Habitant de l\'Espagne'; A[6]='Le féminin de étudiant'; A[8]='La femelle du chat'; A[12]='La femme du duc'; A[13]='Jean est sportif, Sylvie est...'; A[14]='Si tu vas acheter dans un magasin, tu es un ...'; A[15]='Le masculin de maîtresse'; A[16]='La femme du prince'; A[21]='La femme du patron'; A[22]='Elle est institutrice, il est...'; A[24]='La femme du comte'; A[25]='La femelle du cheval'; A[26]='Hans est autrichien, Greta est ...'; D = new Array(); D[2]='Le féminin de chanteur'; D[4]='Le féminin de serveur'; D[5]='Michel est architecte, Julie est ...'; D[7]='La femme du marquis'; D[9]='Elle est ouvrière, il est ...'; D[10]='Charles est heureux, Chantal est ...'; D[11]='La femme du roi'; D[17]='La profession de Madame Rossotti'; D[18]='Sa femme est la reine'; D[19]='La femme du baron'; D[20]='John est anglais, Jenny est ...'; D[23]='Le mari de la comtesse'; 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... '; } //--> //]]> -->