'; 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('G','E','N','0','V','A','','','','','','','','',''); L[1] = new Array('','U','','','I','B','E','R','I','C','A','','','',''); L[2] = new Array('','R','','','','','','','','O','','','','M',''); L[3] = new Array('','O','','C','A','R','A','V','E','L','L','A','','A',''); L[4] = new Array('','P','','','L','','','','','O','','','','R',''); L[5] = new Array('','A','F','R','I','C','A','','A','M','E','R','I','C','A'); L[6] = new Array('','','','','S','','T','','','B','','','','O',''); L[7] = new Array('','M','A','G','E','L','L','A','N','O','','S','','P',''); L[8] = new Array('V','','','','I','','A','','','','','P','','O',''); L[9] = new Array('E','','','','','A','N','T','I','L','L','E','','L',''); L[10] = new Array('N','','','','','','T','','','','','R','','O',''); L[11] = new Array('E','','S','F','E','R','I','C','A','','','A','','',''); L[12] = new Array('Z','','','','','','C','','','','I','N','D','I','E'); L[13] = new Array('I','N','D','I','A','N','O','','','','','Z','','',''); L[14] = new Array('A','','','','','','','','O','C','E','A','N','I','A'); C = new Array(); C[0] = new Array(1,2,0,0,3,4,0,0,0,0,0,0,0,0,0); C[1] = new Array(0,0,0,0,5,0,0,0,0,6,0,0,0,0,0); C[2] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,7,0); C[3] = new Array(0,0,0,8,9,0,0,0,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,10,0,0,0,0,11,0,12,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); C[7] = new Array(0,13,0,0,0,0,0,0,0,0,0,14,0,0,0); C[8] = new Array(15,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[9] = new Array(0,0,0,0,0,16,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); C[11] = new Array(0,0,17,0,0,0,0,0,0,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,18,0,0,0,0); C[13] = new Array(19,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,20,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]='città natale di Cristoforo Colombo'; A[5]='penisola europea da cui partì Colombo'; A[8]='nave impiegata da Colombo'; A[10]='Bartolomeo Diaz navigò lungo le sue coste fino all\'estremità meridionale'; A[12]='L\'ha scoperta Colombo senza esserne consapevole'; A[13]='per primo ha circumnavigato il mondo'; A[16]='arcipelago dell\'America centrale dove è arrivato Colombo'; A[17]='Colombo voleva raggiungere le Indie da occidente perchè sapeva che la terra è ...'; A[18]='la via delle spezie era anche detta via delle ...'; A[19]='E\' indispensabile attraversarlo per arrivare nelle Indie'; A[20]='dopo le esplorazioni di portoghesi e spagnoli tra 1400 e 1500 era un continente ancora sconosciuto'; D = new Array(); D[2]='il continente di cui fa parte l\'Italia'; D[3]='le prime due lettere di Vicenza'; D[4]='le prime due lettere dell\'alfabeto'; D[6]='il Cristoforo esploratore'; D[7]='esploratore veneziano'; D[9]='venti che soffiano nell\'oceano atlantico'; D[11]='oceano attraversato da esploratori spagnoli e portoghesi'; D[14]='estremità meridionale dell\'Africa detto capo di buona ...'; D[15]='prima delle scoperte geografiche controllava i traffici verso l\'Oriente'; 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...
'; } //--> //]]>
-->