'; 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('','','','','I','N','D','I','V','I','D','U','I','','','','',''); L[1] = new Array('','','','','','','','','E','','','','','','','','',''); L[2] = new Array('T','O','T','A','L','I','T','A','R','I','S','M','O','','Q','','',''); L[3] = new Array('','','','','','','','','S','','','','','','U','S','A',''); L[4] = new Array('','P','','','','','','','A','L','S','A','Z','I','A','','','G'); L[5] = new Array('M','U','S','S','O','L','I','N','I','','','','','','T','','','E'); L[6] = new Array('','N','','','','','','','L','','','','','','T','','','R'); L[7] = new Array('','I','','','M','U','T','I','L','A','T','A','','','R','','','M'); L[8] = new Array('','T','','','','','','','E','','','','F','L','O','T','T','A'); L[9] = new Array('','I','','F','A','S','C','I','S','M','O','','','I','','','','N'); L[10] = new Array('','V','','','','','','','','','','','','B','','','','I'); L[11] = new Array('N','A','Z','I','S','M','O','','','D','','','','E','','','','A'); L[12] = new Array('','','','','','','','','','I','','','','R','','','',''); L[13] = new Array('','','','','','','','','T','R','E','N','T','A','','','',''); L[14] = new Array('','','','','','','','','','I','','','','L','','','',''); L[15] = new Array('','','','','','','','','','T','','','D','E','B','I','T','O'); L[16] = new Array('','','','','','','','','','T','','','','','','','',''); L[17] = new Array('','','','','','','','','W','I','L','S','O','N','','','',''); C = new Array(); C[0] = new Array(0,0,0,0,1,0,0,0,2,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); C[2] = new Array(3,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0); C[4] = new Array(0,6,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,8); C[5] = new Array(9,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,11,12,0,0,0,0); C[9] = new Array(0,0,0,13,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,0,0,0,0,0,0); C[11] = new Array(14,0,0,0,0,0,0,0,0,15,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,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,16,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,0,0,0,0); C[15] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,17,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); C[17] = new Array(0,0,0,0,0,0,0,0,18,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('','','','','','','','','','','','','','','','','',''); A = new Array(); A[1]='sono subordinati allo stato'; A[3]='argomento principale della ul'; A[5]='Paese leader fra i paesi vincitori della guerra'; A[7]='Insieme alla Lorena ritornò alla Francia'; A[9]='Il duce'; A[10]='La vittoria secondo i nazionalisti italiani'; A[11]='Ai Tedeschi du requisita dopo la pace'; A[13]='Durò in Italia dall\'ottobre del 1922 al 25 aprile 1945'; A[14]='Si sviluppò in Germania dal 1933 al 1945'; A[16]='Il periodo delle due guerre mondiali dura circa ...... anni'; A[17]='Fu imposto il pagamento alla Germania a riparazione dei danni causati dalla guerra'; A[18]='Presidente americano'; D = new Array(); D[2]='Trattato di pace con la Germania'; D[4]='quanti imperi distruttti dopo la fine della guerra'; D[6]='la pace nei confronti della Germania secondo gli storici'; D[8]='Principale potenza sconfitta'; D[12]='Con l\'avvento della società totaliataria scompare lo stato ...'; D[15]='Non sono riconosciuti nè quelli individuali nè quelli sociali dal fascismo'; 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...
'; } //--> //]]>
-->