'; //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','','T','A','V','O','L','O','','I','L','','D','','F','',''); L[1] = new Array('U','N','O','','','','','','M','','','','A','','R','','L'); L[2] = new Array('M','','S','C','O','L','A','P','I','A','T','T','I','','U','','A'); L[3] = new Array('E','','T','','','I','','','N','','','','','','S','','V'); L[4] = new Array('','C','A','S','S','E','T','T','I','','P','I','A','S','T','R','A'); L[5] = new Array('','','P','','','V','','','M','','O','','','','A','','P'); L[6] = new Array('','C','A','F','F','E','T','T','I','E','R','A','','','','','I'); L[7] = new Array('S','','N','','','','','','','','T','','F','','','L','A'); L[8] = new Array('P','R','E','S','E','','C','A','P','P','A','','O','','N','','T'); L[9] = new Array('A','','','E','','F','','L','','','S','','R','','E','','T'); L[10] = new Array('Z','','','D','','O','','L','','','P','E','N','S','I','L','I'); L[11] = new Array('I','','M','I','C','R','O','O','N','D','E','','O','','','',''); L[12] = new Array('O','','','E','','N','','','','','Z','','','','S','',''); L[13] = new Array('','','','','','E','','R','U','B','I','N','E','T','T','O',''); L[14] = new Array('L','A','V','E','L','L','O','','','','E','','L','','A','','D'); L[15] = new Array('E','','','','','L','','','','','','','L','','T','','E'); L[16] = new Array('I','','M','A','C','I','N','A','C','A','F','F','E','','O','','L'); C = new Array(); C[0] = new Array(1,0,2,0,0,0,0,0,0,3,0,0,4,0,5,0,0); C[1] = new Array(6,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,8); C[2] = new Array(0,0,9,0,0,10,0,0,0,0,0,0,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); C[4] = new Array(0,11,0,0,0,0,0,0,0,0,12,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,0,0); C[6] = new Array(0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(14,0,0,0,0,0,0,0,0,0,0,0,15,0,0,16,0); C[8] = new Array(17,0,0,18,0,0,19,20,0,0,0,0,0,0,21,0,0); C[9] = new Array(0,0,0,0,0,22,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,23,0,0,0,0,0,0); C[11] = new Array(0,0,24,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,25,0,0); C[13] = new Array(0,0,0,0,0,0,0,26,0,0,0,0,27,0,0,0,0); C[14] = new Array(28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,30,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('','','','','','','','','','','','','','','','',''); A = new Array(); A[2]='Il piano su cui si mangia'; A[3]='Articolo davanti a ... piatto'; A[6]='Il primo numero'; A[9]='Dove si mettono i piatti appena lavati'; A[11]='Luogo dove sono le posate'; A[12]='Superficie della cucina elettrica su cui si mettono i tegami'; A[13]='La macchinetta per fare il caffe\''; A[16]='Articolo davanti a ... spesa'; A[17]='Si usano per prendere le pentole calde'; A[19]='Aspira il fumo della cucina'; A[23]='I mobili attaccati al muro'; A[24]='Il forno che riscalda senza il fuoco'; A[26]='Meccanismo che fa uscire acqua, in un lavandino'; A[28]='Il recipiente metallico dove si lavono i piatti'; A[30]='Lo strumento per macinare il caffe\''; D = new Array(); D[1]='Serve a fare luce'; D[2]='Elettrodomestico per abbrustolire il pane'; D[4]='da+i'; D[5]='Oggetto per mescolare le uova'; D[7]='I piu\' piccoli'; D[8]='L\'elettrodomestico che lava i piatti'; D[10]='Sinonimo di leggero'; D[12]='Dove si tengono i sapori da usare in cucina'; D[14]='Sinonimo di area'; D[15]='La macchina dove si cuoce la pizza'; D[18]='Oggetti usati intorno al tavolo'; D[20]='a+lo'; D[21]='in+i'; D[22]='Dove si mettono a scaldare le pentole'; D[25]='Participio passato di essere'; D[27]='Inizio della ... lettera'; D[28]='Il pronome della forma di cortesia'; D[29]='di+il'; 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...'; } //--> //]]>