'; //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('','','T','E','S','P','I','','','M','','','','','G'); L[1] = new Array('M','','','','','L','','','B','A','T','O','S','T','E'); L[2] = new Array('I','R','O','N','I','A','','','','R','','','','','R'); L[3] = new Array('M','','','','','T','','','','I','','','','','G'); L[4] = new Array('O','','','','','E','','','C','O','R','T','E','','O'); L[5] = new Array('','G','O','B','B','A','','','','N','','','','',''); L[6] = new Array('','U','','','','','','','T','E','A','T','R','I',''); L[7] = new Array('M','I','M','I','C','A','','C','','T','','','','',''); L[8] = new Array('','T','','','','','D','O','T','T','O','R','E','',''); L[9] = new Array('','T','','T','','F','','M','','A','','I','','',''); L[10] = new Array('B','O','T','O','L','A','','I','','','','S','','',''); L[11] = new Array('E','','','N','','R','','C','','','P','O','S','A',''); L[12] = new Array('F','O','','T','E','S','T','O','','','U','','','',''); L[13] = new Array('F','','','O','','A','','','','','P','A','R','T','E'); L[14] = new Array('A','','','','','','L','A','Z','Z','I','','','',''); C = new Array(); C[0] = new Array(0,0,1,0,0,2,0,0,0,3,0,0,0,0,4); C[1] = new Array(5,0,0,0,0,0,0,0,6,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); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,8,0,0,0,0,0,0); C[5] = new Array(0,9,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,10,0,0,0,0,0,0); C[7] = new Array(11,0,0,0,0,0,0,12,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,13,0,0,0,0,14,0,0,0); C[9] = new Array(0,0,0,15,0,16,0,0,0,0,0,0,0,0,0); C[10] = new Array(17,0,0,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,0,18,0,0,0,0); C[12] = new Array(19,0,0,20,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,21,0,0,0,0); C[14] = new Array(0,0,0,0,0,0,22,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('','','','','','','','','','','','','','',''); A = new Array(); A[1]='Il carro degli attori girovaghi'; A[6]='I colpi ricevuti da Pulcinella'; A[7]='L\'arma sottile di cui si servono i comici '; A[8]='L\'innamorato la fa alla persona che ama '; A[9]='Caratteristica fisica di Pulcinella'; A[10]='I luoghi dello spettacolo'; A[11]='La abilita\' degli attori di comunicare senza parole'; A[13]='Personaggio pedante, saccente di solito di Bologna'; A[17]='Artificio teatrale usato per far scomparire gli attori dal palco'; A[18]='L\'atteggiamento dell\'attore in scena'; A[19]='Il piu\' grande artista moderno di commedia dell\'arte'; A[20]='Mancava spesso nella commedia dell\'arte'; A[21]='Il ruolo dell\'attore anche detto ...'; A[22]='Gli scherzi acrobatici dei comici in scena'; D = new Array(); D[2]='La parte bassa del teatro'; D[3]='La maschera mossa dai fili'; D[4]='Il linguaggio usato spesso nella commeddia dell\'arte'; D[5]='Quello ... bianco e\' famoso'; D[9]='Un altro nome per comico dell\'arte'; D[12]='Il genere teatrale della commedia'; D[14]='Lo scopo della commedia era di provocarlo'; D[15]='Spesso il servo fa il finto ... per ingannare il vecchio'; D[16]='Un genere teatrale con equivoci, scambi di persona'; D[17]='E\' famosa quella narrata da Boccaccio fatta a Calandrino'; D[18]='La caratteristiche marionette del teatro siciliano'; 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...'; } //--> //]]>