'; 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','O','N','D','W','A','N','A','','','','',''); L[1] = new Array('','','','','','I','','','','','','','','',''); L[2] = new Array('','','C','O','N','V','E','R','G','E','N','T','I','',''); L[3] = new Array('','','','','','E','','','','','','','','',''); L[4] = new Array('','','','D','O','R','S','A','L','I','','F','','',''); L[5] = new Array('','L','','','','G','','T','','','Z','O','L','L','E'); L[6] = new Array('','A','','','','E','','L','','P','','S','','',''); L[7] = new Array('','U','','P','A','N','T','A','L','A','S','S','A','',''); L[8] = new Array('','R','','','','T','','N','','N','','E','','',''); L[9] = new Array('','A','','','','I','','T','','G','','','','',''); L[10] = new Array('','S','','','','','','I','','E','','','','S',''); L[11] = new Array('','I','','','','A','','C','','A','F','R','I','C','A'); L[12] = new Array('M','A','N','T','E','L','L','O','','','','','','U',''); L[13] = new Array('','','','','','P','','','','','','','','D',''); L[14] = new Array('','','I','N','D','I','A','','','','','','','O',''); C = new Array(); C[0] = new Array(0,0,1,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); C[2] = new Array(0,0,3,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,0,0,0,0,0); C[4] = new Array(0,0,0,4,0,0,0,5,0,0,0,6,0,0,0); C[5] = new Array(0,7,0,0,0,0,0,0,0,0,8,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,0,0,0,9,0,0,0,0,0); C[7] = new Array(0,0,0,10,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,0,0,0); C[9] = new Array(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,0,11,0); C[11] = new Array(0,0,0,0,0,12,0,0,0,13,0,0,0,0,0); C[12] = new Array(14,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,0,0,0,0,0,0,0); C[14] = new Array(0,0,15,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]='Continente dell\'emisfero australe da 180 a 120 milioni di anni fa'; A[3]='movimenti delle zolle che provocano la formazione delle montagne'; A[4]='Catene sottomarine di montagne'; A[8]='Porzioni della crosta'; A[10]='L\'oceano circa 225 milioni di anni fa'; A[13]='Continente una volta aataccato all\'America meridionale'; A[14]='Strato intermedio della terra percorso da correnti magmatiche'; A[15]='Andando alla deriva si è urtata con l\'Eurasia ed ha formato le montagne dell\'Asia centrale'; D = new Array(); D[2]='movimenti delle zolle per cui esse si allontanano le une dalle altre'; D[5]='Oceano che continua ad allargarsi'; D[6]='Depressioni oceaniche'; D[7]='continente dell\'emisfero boreale da 180 a 120 milioni di anni fa'; D[9]='Nome del continente originario'; D[11]='Parte assestata della crosya'; D[12]='Catena montuosa dell\'Europa formatasi in seguito allo scontro tra zolla Africana ed euroasiatica'; 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...
'; } //--> //]]>
-->