'; 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('R','E','S','T','A','U','R','A','Z','I','O','N','E','',''); L[1] = new Array('','Q','','','','','','','A','','','','','','N'); L[2] = new Array('R','U','S','S','I','A','','','R','','','','','','A'); L[3] = new Array('','I','','','','','','','','','L','','','','P'); L[4] = new Array('','L','O','M','B','A','R','D','O','V','E','N','E','T','O'); L[5] = new Array('','I','','','','','','','','','G','','','','L'); L[6] = new Array('','B','','M','E','T','T','E','R','N','I','C','H','','E'); L[7] = new Array('','R','','','','','','','','','T','','','','O'); L[8] = new Array('','I','','','V','','','F','','','T','','','','N'); L[9] = new Array('','O','','L','I','B','E','R','A','L','I','','S','','E'); L[10] = new Array('','','','','E','','','A','','','M','','A','',''); L[11] = new Array('','','','','N','','','N','A','Z','I','O','N','E',''); L[12] = new Array('','','','','N','','','C','','','T','','T','',''); L[13] = new Array('','','','S','A','V','O','I','A','','\u00C0','','A','',''); L[14] = new Array('','','','','','','','A','','','','','','',''); C = new Array(); C[0] = new Array(1,2,0,0,0,0,0,0,3,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,4); C[2] = new Array(5,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,6,0,0,0,0); C[4] = new Array(0,7,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,0,0); C[6] = new Array(0,0,0,8,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); C[8] = new Array(0,0,0,0,9,0,0,10,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,11,0,0,0,0,0,0,0,0,12,0,0); C[10] = new Array(0,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,13,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); C[13] = new Array(0,0,0,14,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,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]='A partire dal 1815 inizia l\'epoca della ...'; A[5]='Una delle potenze che ha sconfitto Napoleone'; A[7]='E\' un territorio italiano dell\'impero austriacao'; A[8]='Primo ministro austriaco artefice della pace'; A[11]='Si rifanno alle idee di libertà e nazione'; A[13]='E\' un principio non riconosciuto nel congresso di Vienna'; A[14]='Dinastia del regno di Sardegna'; D = new Array(); D[2]='Il principio stabilito a Vienna che garantì la pace dei 100 anni'; D[3]='Re della Russia'; D[4]='Domino l\'Europa dal 1797 al 1815'; D[6]='In base ad esso ritornano sui troni i sovrani spodestati dalla rivoluzione'; D[9]='Sede del congresso che pose fine alla guerre antinapoleoniche'; D[10]='Nel 1830 diventa uno stato costituzionale'; D[12]='l\'allenza fra Austria, Russia e Prussia fu chiamata ...'; 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...
'; } //--> //]]>
-->