'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; //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 + 'chiave verticale ' + 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('P','E','A','R','L','H','A','R','B','O','U','R','','','','','','','','','','',''); L[1] = new Array('A','','','','','','','','','','','A','','','','','','','','','','',''); L[2] = new Array('R','E','S','I','S','T','E','N','Z','A','','F','','J','','','','','','','','',''); L[3] = new Array('T','','E','','','','','O','','','','','S','A','L','\u00D2','','','','','','',''); L[4] = new Array('I','','T','','','','A','R','I','A','N','A','','P','','','','','','','','',''); L[5] = new Array('G','','T','','','','','M','','','','','','A','S','S','E','','','','','',''); L[6] = new Array('I','','E','','','E','L','A','L','A','M','E','I','N','','','','','','','','',''); L[7] = new Array('A','','M','','','','','N','','','','','','','','','','','','','','',''); L[8] = new Array('N','','B','','','K','','D','','S','','','','','','','','','','','','',''); L[9] = new Array('I','','R','','P','A','C','I','F','I','C','O','','','','','','','','','','',''); L[10] = new Array('','','E','','','M','','A','','C','','','C','','','','','','','','','',''); L[11] = new Array('','','','R','S','I','','','V','I','T','A','L','E','','','','','','','','',''); L[12] = new Array('','','','','','K','','P','','L','','','N','','','','','','','','','',''); L[13] = new Array('','','','','','A','T','O','M','I','C','A','','','','','','','','','','',''); L[14] = new Array('','','','','','Z','','L','','A','','','','','F','','','','','','','',''); L[15] = new Array('','S','','','','E','','O','','','','V','','','U','','','','','','','',''); L[16] = new Array('','T','','','','','','N','','','R','E','I','C','H','','','','','','','',''); L[17] = new Array('','A','L','L','E','A','T','I','','R','','N','','','R','','','','','','','',''); L[18] = new Array('','L','','','','','','A','G','O','S','T','O','','E','','','','','','','',''); L[19] = new Array('M','I','D','W','A','Y','','','','S','','I','','','R','','','','','','','',''); L[20] = new Array('','N','','','','','','','','S','','','U','','','','','','','','','',''); L[21] = new Array('','','','','','','','','L','A','G','E','R','','','','','','','','','',''); L[22] = new Array('','','','','','','','','','','','','S','T','A','L','I','N','G','R','A','D','O'); L[23] = new Array('','','','','','','','','','','','','S','','','','','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0); C[1] = 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); C[2] = new Array(3,0,4,0,0,0,0,5,0,0,0,0,0,6,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,7,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,8,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,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,10,0,0,0,0,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,0,0,0); C[8] = new Array(0,0,0,0,0,11,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,13,0,0,0,0,0,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,14,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,15,0,0,0,0,16,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,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,18,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,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0); C[15] = new Array(0,20,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0); C[16] = new Array(0,0,0,0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,0); C[17] = new Array(0,23,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0); C[18] = new Array(0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[19] = new Array(26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[20] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0); C[21] = new Array(0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[22] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,29,0,0,0,0,0,0,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); 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('','','','','','','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='Il Giappone distrusse la flotta aereo navale usa a ...'; A[3]='Movimento di rivolta contro le truppe tedesche di occupazione'; A[7]='Capitale della repubblica fascista in Italia'; A[8]='Razza eletta secondo Hitler'; A[9]='Alleanza militare comprendente Germania, Italia e Giappone'; A[10]='Battaglia decisiva per la controffensiva alleata nel medio oriente'; A[13]='Oceano in cui si scontrarono Giapponesi e Americani'; A[15]='Stato fondato da Mussolini dopo che fu liverato dai tedeschi'; A[16]='In tedesco Lebensraum, in italiano spazio ...'; A[18]='Potentissima bomba sperimentata dagli Americani a Hiroshima e Nagasaki'; A[22]='Con Hitler nacque il terzo ...'; A[23]='Alleanza comprendente Usa, Urss e Regno Unito'; A[25]='Mese del 1945 in cui fu lanciata la bomba atomica'; A[26]='Battaglia nel Pacifico con cui iniziò la controffensiva degli Usa contro il Giappone'; A[28]='Campo di sterminio'; A[29]='Città da cui iniziò la controffensiva russa'; D = new Array(); D[1]='Affiancarono gli Alleati nella Liberazione dell\'Italia del centro-nord'; D[2]='Aviazione inglese'; D[4]='Mese del 1943 in cui fu firmato l\'armistizio tra Italia e Alleati'; D[5]='Famoso sbarco alleato nell\'Europa continentale'; D[6]='Potenza egemone nell\'Asia del Pacifico'; D[11]='Famosi piloti giapponesi'; D[12]='Lo sbarco nelle sue terre determinò la caduta di Mussolini'; D[14]='Organismo politico dei partigiani italiani'; D[17]='Con la sua invasione iniziò la guerra'; D[19]='Equivalente tedesco di "duce"'; D[20]='Capo dittaoriale dell\'Urss'; D[21]='L\'esercito sovietico ne contò circa .... milioni di morti'; D[24]='L\'armata sovietica'; D[27]='Nacque dalle ceneri dell\'impero zarista'; 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'; } Output += YourScoreIs + ' ' + Score + '%.
'; if (AllCorrect == false){ Output += '
' + Incorrect; Penalties++; } BuildExercise(); WriteFeedback(Output); DisplayExercise(); } function DoNothing(){} function Blank(){ return '
©Half-Baked Software. Loading...
'; } //--> //]]>
-->