'; //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 + 'Down: ' + 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('','','','B','','','','B','U','O','N','A','S','E','R','A','','','',''); L[1] = new Array('M','A','L','E','','','','','','','U','','C','','','','','','P',''); L[2] = new Array('','D','','N','','','','','','','M','','U','','','','','','I',''); L[3] = new Array('','D','','O','','','P','R','O','F','E','S','S','O','R','E','S','S','A',''); L[4] = new Array('S','I','G','N','O','R','E','','','','R','','A','','O','','','','C',''); L[5] = new Array('','O','','E','','','R','','S','E','I','','','','M','','D','U','E',''); L[6] = new Array('','','','','S','','S','','','','','','C','I','A','O','','','R',''); L[7] = new Array('B','U','O','N','A','N','O','T','T','E','','','','N','','','D','','E',''); L[8] = new Array('','','','','L','','N','','','','P','R','E','G','O','','O','','',''); L[9] = new Array('S','','Q','','U','','E','C','C','O','','','','E','','','D','','',''); L[10] = new Array('I','','U','','T','','','','','','','','','G','','','I','','','D'); L[11] = new Array('G','R','A','Z','I','E','','','T','','','','','N','','','C','O','M','O'); L[12] = new Array('N','','T','','','','A','R','R','I','V','E','D','E','R','C','I','','','T'); L[13] = new Array('O','T','T','O','','','V','','E','','','','','R','','','','','','T'); L[14] = new Array('R','','R','','N','O','V','E','','','','D','I','E','C','I','','','','O'); L[15] = new Array('A','','O','','','','O','','','','','','','','O','','','S','','R'); L[16] = new Array('','B','','P','','S','C','U','S','I','','','','','M','','','I','','E'); L[17] = new Array('','A','','I','','','A','','','','','U','','S','E','T','T','E','',''); L[18] = new Array('P','R','E','S','E','N','T','A','Z','I','O','N','I','','','','','N','',''); L[19] = new Array('','I','','A','','','O','','','','','O','','L','U','C','C','A','',''); C = new Array(); C[0] = new Array(0,0,0,1,0,0,0,2,0,0,3,0,4,0,0,0,0,0,0,0); C[1] = new Array(5,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,8,0,0,0,0,0,0,0,9,0,0,0,0,0); C[4] = new Array(10,0,0,0,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,11,0,0,0,0,0,0,0,12,0,0,0); C[6] = new Array(0,0,0,0,13,0,0,0,0,0,0,0,14,15,0,0,0,0,0,0); C[7] = new Array(16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0); C[9] = new Array(19,0,20,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22); C[11] = new Array(23,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,25,0,0,0); C[12] = new Array(0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(27,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,28,0,0,0,0,0,0,29,0,0,30,0,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0); C[16] = new Array(0,32,0,33,0,34,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,35,0,36,0,0,0,0,0,0); C[18] = new Array(37,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,38,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[2]='Si dice per salutare dopo le 16'; A[5]='Il contrario di bene'; A[8]='L\'insegnante donna'; A[10]='Titolo per chiamare un uomo'; A[11]='Due x tre fa ...'; A[12]='Nove - sette fa ...'; A[14]='Schiavo vostro... Un saluto informale'; A[16]='Si dice prima di andare a dormire'; A[18]='La risposta a grazie'; A[21]='Un caffe\', per favore. ... il caffe\''; A[23]='Si dice per gratitudine'; A[25]='Un famoso lago italiano'; A[26]='Un saluto per dire "ci vediamo piu\' tardi"'; A[27]='Quattro + quattro fa ...'; A[28]='Diciotto : due fa ...'; A[29]='Settanta : sette fa ...'; A[34]='Si dice quando si urta (bump into) una persona'; A[36]='Diciassette - dieci fa ...'; A[37]='Si fanno quando si introducono amici ad altre persone'; A[38]='Una bella citta\' toscana'; D = new Array(); D[1]='Come stai? Molto bene o ...'; D[3]='I segni che indicano quantita\''; D[4]='Si dice ad un amico quando si chiede un favore'; D[6]='L\'ultimo saluto a una persona'; D[7]='Si usa nelle presentazioni, per mostrare gradimento'; D[8]='I nomi descrivono le ... e le cose'; D[9]='La capitale d\'Italia'; D[13]='Ciao, buonasera, buongiorno sono ...'; D[15]='Una persone che costruisce ponti'; D[17]='Sessanta : cinque fa ...'; D[19]='Titola per chiamare una donna'; D[20]='Due + due fa ...'; D[22]='Una persona che cura i malati'; D[24]='Undici - otto fa ...'; D[26]='Una persona che difende in tribunale'; D[30]='Si usa nelle domande per chiedere il nome a una persona'; D[31]='Citta\' toscana famosa per il Palio'; D[32]='Capoluogo della Puglia'; D[33]='La citta\' con la torre pendente'; D[35]='L\'articolo indefinito'; 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©Half-Baked Software. Loading...'; } //--> //]]>