'; //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('L','I','S','C','I','O','','','','','','','','N','','','','','','','','','P','',''); L[1] = new Array('U','','','','','','C','','','F','','A','P','E','R','I','T','I','V','O','','','O','',''); L[2] = new Array('N','E','L','L','E','','E','','','E','','S','','I','','','','','','','','','R','',''); L[3] = new Array('G','','','','','A','N','C','O','R','A','T','O','','S','A','B','B','I','A','','','T','','D'); L[4] = new Array('O','','','P','','','A','','','R','','R','','','','','I','','','','I','S','O','L','E'); L[5] = new Array('M','','','E','','','','','','O','','A','','','R','','B','','M','','','','','','C'); L[6] = new Array('A','L','I','S','C','A','F','O','','V','','T','A','V','O','L','I','N','O','','','','','','O'); L[7] = new Array('R','','','C','','','','','','I','','T','','','B','','T','','L','','A','','T','','R'); L[8] = new Array('E','','B','A','N','C','H','I','N','A','','E','','','U','','A','','T','','Z','','U','','A'); L[9] = new Array('','','','T','','','','','','','T','','','','S','','','','O','','Z','','R','','Z'); L[10] = new Array('M','O','T','O','S','C','A','F','I','','E','','D','','T','','','','','','U','','I','','I'); L[11] = new Array('','','','','','','T','','','A','L','T','O','B','O','R','D','O','','F','R','E','S','C','O'); L[12] = new Array('','','O','R','N','A','T','O','','','O','','N','','','E','','','','','R','','T','','N'); L[13] = new Array('','S','','','','','R','','M','','N','','D','E','T','T','A','G','L','I','O','','I','','I'); L[14] = new Array('','P','','','V','I','A','L','E','','E','','O','','','I','','O','','','','F','','F',''); L[15] = new Array('','I','','','I','','C','','N','','','','L','','','','','M','','','','R','','O',''); L[16] = new Array('B','A','G','N','A','S','C','I','U','G','A','','A','R','I','A','','E','','','P','E','S','C','E'); L[17] = new Array('','G','','','','','A','','','','','','R','','','','','N','','','','Q','','E',''); L[18] = new Array('','G','','','M','A','R','C','I','A','P','I','E','D','I','','','E','','','','U','','',''); L[19] = new Array('','I','','','','','E','','','','I','','','','','','S','','','','','E','','',''); L[20] = new Array('B','A','R','C','H','E','','','','S','T','A','Z','I','O','N','E','','','B','I','N','A','R','I'); L[21] = new Array('','','','A','','','','','','','T','','','','','','C','','','','','T','','',''); L[22] = new Array('C','I','E','L','O','','A','S','C','I','U','G','A','R','E','','C','','','','P','A','L','M','E'); L[23] = new Array('','','','M','','','','','','','R','','','','','','H','','','','','T','','',''); L[24] = new Array('T','A','V','O','L','A','','','','P','E','S','C','A','','T','I','E','P','I','D','O','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,3,0,0); C[1] = new Array(0,0,0,0,0,0,4,0,0,5,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(7,0,0,0,0,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,8,0,0,0,0,0,0,0,0,9,0,10,0,0,0,0,0,0,0,11); C[4] = new Array(0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,15,0,0,0,0,0,0); C[6] = new Array(16,0,0,0,0,0,0,0,0,0,0,17,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,0,0,0,0,0,18,0,19,0,0); C[8] = new Array(0,0,20,0,0,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,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[10] = new Array(22,0,0,0,0,0,23,0,0,0,0,0,24,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,25,0,0,0,0,0,26,0,0,0,27,0,0,0,0,0); C[12] = new Array(0,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,29,0,0,0,0,0,0,30,0,0,0,31,0,0,0,0,32,0,0,0,0,0,0,0); C[14] = new Array(0,0,0,0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,35,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(36,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,0,0,0,0,38,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,0,0,0,0,0); C[18] = new Array(0,0,0,0,39,0,0,0,0,0,40,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,41,0,0,0,0,0,0,0,0); C[20] = new Array(42,0,0,43,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,45,0,0,0,0,0); C[21] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(46,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0); C[23] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[24] = new Array(49,0,0,0,0,0,0,0,0,50,0,0,0,0,0,51,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('','','','','','','','','','','','','','','','','','','','','','','','',''); G[24] = new Array('','','','','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Si dice di una cosa senza asperità'; A[6]='Bevanda che si prende prima del pranzo per stimolare l\'appetito'; A[7]='in+le='; A[8]='Tenuto fermo nell\'acqua con un ferro ad arco'; A[9]='Il terriccio fine vicino al mare'; A[13]='Terre circondate dal mare'; A[16]='Barca che vola sull\'acqua'; A[17]='Mobile usato per posare cibi e bevande'; A[20]='Costruzione per legare le barche'; A[22]='Barche con il motore'; A[25]='Si dice di barche grandi e potenti'; A[27]='Il pesce appena pescato '; A[28]='Decorato'; A[31]='Vendita al singolo compratore'; A[33]='Strada alberata'; A[36]='Area della spiaggia coperta dalle onde'; A[37]='L\'elemento che respiriamo'; A[38]='Animale che vive nei mari, laghi o fiumi'; A[39]='Zona per il passaggio dei pedoni'; A[42]='Veicoli per andare sul mare'; A[44]='Costruzione di arrivo dei treni'; A[45]='La strada del treno'; A[46]='Lo spazio sopra la terra'; A[47]='Essiccare'; A[48]='Alberi tropicali'; A[49]='Si dice del mare calmo'; A[50]='L\'attività di cattura dei pesci'; A[51]='Né caldo né freddo'; D = new Array(); D[1]='La strada parallela al mare'; D[2]='in+i='; D[3]='Struttura per ospitare le navi'; D[4]='Il pasto della sera'; D[5]='Il sistema di trasporto su rotaia'; D[6]='Composizione artistiche non realistiche'; D[10]='Bevanda'; D[11]='Ornamenti'; D[12]='Il pesce fuori dell\'acqua'; D[14]='Forte'; D[15]='Parecchio'; D[18]='Il colore del mare e del cielo'; D[19]='Visitatori occasionali'; D[21]='Rivestimento di plastica'; D[23]='L\'avvicinarsi di una barca a una banchina'; D[24]='Movimento oscillatorio'; D[26]='Gli strumenti dei pescatori'; D[29]='La zona vicino al mare'; D[30]='Elenco dei prodotti di un bar o di un ristorante'; D[32]='Le corde delle barche'; D[33]='Strada'; D[34]='Si dice di un luogo con molte persone'; D[35]='Fine di un fiume'; D[40]='Rappresentazioni grafiche'; D[41]='Recipienti'; D[43]='Contrario di mosso'; 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...'; } //--> //]]>