'; 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('L','A','G','U','N','A','','','L','I','D','O','','M',''); L[1] = new Array('E','','I','','','','','','','','','','','A',''); L[2] = new Array('','M','U','D','A','','','','A','','','M','A','R','I'); L[3] = new Array('','','D','','','','','G','R','','','','','C',''); L[4] = new Array('','','E','','','','C','A','S','T','E','L','L','O',''); L[5] = new Array('B','O','C','C','A','','','L','E','G','N','O','','P',''); L[6] = new Array('','','C','','','','','E','N','','','','','O',''); L[7] = new Array('','C','A','N','A','L','G','R','A','N','D','E','','L',''); L[8] = new Array('','','','','','S','E','A','L','','','','','O',''); L[9] = new Array('P','','R','I','O','','N','','E','','','A','','',''); L[10] = new Array('A','','','','','','O','','','M','U','R','A','','L'); L[11] = new Array('L','','','','D','','V','','','A','','S','A','L','E'); L[12] = new Array('I','','','','O','','A','','','R','I','A','L','T','O'); L[13] = new Array('','','','','G','','','','','E','','','','','N'); L[14] = new Array('C','O','N','T','E','R','M','I','N','A','Z','I','O','N','E'); C = new Array(); C[0] = new Array(1,0,2,0,0,0,0,0,3,0,0,0,0,4,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[2] = new Array(0,5,0,0,0,0,0,0,6,0,0,7,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,8,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,9,0,0,10,11,12,0,0,0); C[5] = new Array(13,0,0,0,0,0,0,14,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,15,0,0,0,0,0,0,0); C[7] = new Array(0,16,0,0,0,17,18,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,0,0,19,0,0,0,0,0,0,0,0,0); C[9] = new Array(20,0,21,0,0,0,0,0,0,0,0,22,0,0,0); C[10] = new Array(0,0,0,0,0,0,0,0,0,23,0,0,24,0,25); C[11] = new Array(0,0,0,0,26,0,0,0,0,0,0,27,0,28,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,29,0,0,0,0,0); C[13] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[14] = new Array(30,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]='Venezia sorge in una'; A[3]='E\' la spiaggia dei veneziani'; A[5]='convoglio di navi'; A[7]='ha dominato i '; A[8]='sigla di Grosseto'; A[9]='uno dei sei sestieri'; A[13]='passaggio tra il mare aperto e la laguna'; A[14]='ne aveva bisogno in gran quantità'; A[15]='sono presenti in Veneto'; A[16]='canale a forma di s'; A[19]='anagramma di sale'; A[21]='piccolo canale'; A[23]='non ne ha avuto bisogno per difendersi'; A[27]='una delle principali risorse nell\'alto medioevo'; A[29]='ponte di Venezia'; A[30]='perimetro della laguna entro cui era vietato edificare'; D = new Array(); D[1]='articolo'; D[2]='uno dei canali principali di Venezia'; D[4]='veneziano che andò nel Catai'; D[6]='La fabbrica più grande'; D[8]='tipica nave veneziana'; D[10]='telegiornale'; D[11]='le contiene Venezia'; D[12]='articolo'; D[17]='consonanti'; D[18]='La rivale di Venezia'; D[20]='ne hanno piantati tanto per solidificare il terreno'; D[22]='bruciata'; D[23]='c\'è l\'alta e la bassa'; D[24]='una vocale ripetuta ed una consonante'; D[25]='animale simbolo della città'; D[26]='la più alta magistratura della repubblica'; D[28]='sigla di latina'; 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...
'; } //--> //]]>
-->