'; //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('G','','','','P','','','A','N','C','A','','B','A','F','F','I','','',''); L[1] = new Array('O','C','C','H','I','','G','','A','','','D','','','R','','','','',''); L[2] = new Array('M','','O','','E','','A','','R','','M','E','N','T','O','','','','F',''); L[3] = new Array('I','','S','','D','','M','','I','','','N','','','N','','B','','A',''); L[4] = new Array('T','','C','','E','','B','','C','','','T','','','T','O','R','A','C','E'); L[5] = new Array('I','','I','','','C','A','V','I','G','L','I','A','','E','','A','','C',''); L[6] = new Array('','B','A','R','B','A','','','','','','','','','','','C','','I',''); L[7] = new Array('G','','','','','P','A','L','P','E','B','R','E','','B','O','C','C','A',''); L[8] = new Array('U','N','G','H','I','E','','','','','','','','','','','I','','',''); L[9] = new Array('A','','','','','L','A','B','B','R','A','','M','E','D','I','O','','',''); L[10] = new Array('N','','','','','L','','','','','','P','','','','','','','',''); L[11] = new Array('C','','S','C','H','I','E','N','A','','T','E','M','P','I','E','','P','','G'); L[12] = new Array('E','','','','','','','A','','','','L','','','','','','U','','I'); L[13] = new Array('','','','','','P','','S','P','A','L','L','A','','A','','','P','','N'); L[14] = new Array('','M','I','G','N','O','L','O','','L','','E','','','N','','D','I','T','O'); L[15] = new Array('','A','','','','L','','','','L','','','C','','U','','','L','','C'); L[16] = new Array('','N','','','','L','','','','U','','','O','','L','','','L','','C'); L[17] = new Array('Z','I','G','O','M','I','','','','C','I','G','L','I','A','','','A','','H'); L[18] = new Array('','','','','','C','','','','E','','','L','','R','','','','','I'); L[19] = new Array('I','N','D','I','C','E','','','','','','','O','R','E','C','C','H','I','O'); C = new Array(); C[0] = new Array(1,0,0,0,2,0,0,3,4,0,0,0,5,0,6,0,0,0,0,0); C[1] = new Array(7,0,8,0,0,0,9,0,0,0,0,10,0,0,0,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,12,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(17,0,0,0,0,18,0,0,0,0,0,0,0,0,19,0,0,0,0,0); C[8] = new Array(20,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,21,0,0,0,0,0,0,22,0,0,0,0,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,24,0,0,0,0,25,0,0,26,0,0,0,0,0,0,27,0,28); C[12] = new Array(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,0,0,0,0,29,0,30,0,31,0,0,0,0,32,0,0,0,0,0); C[14] = new Array(0,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(36,0,0,0,0,0,0,0,0,37,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(38,0,0,0,0,0,0,0,0,0,0,0,39,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[3]='Il lato del bacino'; A[5]='I peli che crescono fra la bocca e il naso'; A[7]='Gli organi della vista'; A[11]='La parte piu\' bassa della faccia'; A[14]='La cassa che contiene i polmoni'; A[15]='Fra il piede e la gamba'; A[16]='I peli che crescono sulla faccia'; A[18]='La pelle che chiude gli occhi'; A[19]='L\'organo usato per parlare, mangiare'; A[20]='Sono alla fine delle dita'; A[21]='Le sporgenze della bocca'; A[22]='Il dito al centro della mano'; A[24]='La parte posteriore del corpo'; A[26]='Le aree ai lati degli occhi'; A[30]='La parte superiore fra il braccio e il collo'; A[33]='Il dito piu\' piccolo della mano'; A[34]='L\'appendice della mano'; A[36]='L\'area sotto gli occhi'; A[37]='I peli che crescono sulle palpebre'; A[38]='Il dito usato per indicare '; A[39]='L\'organo dell\'udito'; D = new Array(); D[1]='A meta\' del braccio'; D[2]='La parte estrema della gamba'; D[4]='Le aperture del naso'; D[6]='La parte sopra agli occhi'; D[8]='La parte superiore della gamba'; D[9]='L\'arto usato per camminare'; D[10]='Gli strumenti usati per masticare'; D[12]='La parte anteriore della testa'; D[13]='L\'arto superiore'; D[15]='I peli sopra la testa'; D[17]='Le aree accanto alla bocca'; D[23]='L\'organo che copre il corpo'; D[25]='La sporgenza della faccia'; D[27]='L\'apertura dell\'occhio'; D[28]='A meta\' della gamba'; D[29]='Il dito della mano che si piega'; D[31]='Il dito piu\' grande del piede'; D[32]='Il dito dove portiamo l\'anello'; D[33]='Gli organi che servono per afferrare'; D[35]='Unisce la testa al corpo'; 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...'; } //--> //]]>