'; //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 + '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('','T','E','R','M','I','S','T','O','R','I','','B','J','T'); L[1] = new Array('','T','','','','','','','','','N','T','C','',''); L[2] = new Array('','L','V','D','T','','','','M','','T','','D','A','C'); L[3] = new Array('H','','','','','','','C','O','D','E','C','','','M'); L[4] = new Array('A','','','W','A','T','T','','S','','R','','P','','R'); L[5] = new Array('L','','','','','','E','','F','','F','E','T','','R'); L[6] = new Array('L','E','D','','','','R','','E','','A','','C','',''); L[7] = new Array('','','T','E','L','E','M','A','T','I','C','A','','',''); L[8] = new Array('D','C','E','','','','O','','','','C','','Z','','D'); L[9] = new Array('','M','','','P','L','C','','A','','E','','E','','E'); L[10] = new Array('V','O','L','T','','','O','H','M','','','','N','','C'); L[11] = new Array('','S','','','D','S','P','','P','O','N','T','E','','O'); L[12] = new Array('','','','','','','P','','E','','','','R','T','D'); L[13] = new Array('','','','','','','I','','R','','','','','','E'); L[14] = new Array('','','','R','E','T','E','','E','N','C','O','D','E','R'); C = new Array(); C[0] = new Array(0,1,0,0,0,0,0,0,0,0,2,0,3,0,0); C[1] = new Array(0,0,0,0,0,0,0,0,0,0,4,0,0,0,0); C[2] = new Array(0,5,0,0,0,0,0,0,6,0,0,0,7,0,8); C[3] = new Array(9,0,0,0,0,0,0,10,0,0,0,0,0,0,0); C[4] = new Array(0,0,0,11,0,0,12,0,0,0,0,0,13,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,14,0,0,0,0); C[6] = new Array(15,0,16,0,0,0,0,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,17,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(18,19,0,0,0,0,0,0,0,0,0,0,20,0,21); C[9] = new Array(0,0,0,0,22,0,0,0,23,0,0,0,0,0,0); C[10] = new Array(24,0,0,0,0,0,25,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,0,26,0,0,0,27,0,0,0,0,0,0); C[12] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,28,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,0,29,0,0,0,0,30,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]='Come i resistori, ma fatti di semiconduttore'; A[3]='Transistore bipolare a giunzione'; A[4]='Termistori a coefficiente negativo'; A[5]='Linear variable differential transformer'; A[7]='Convertitore digitale analogico'; A[10]='Codificatore decodificatore'; A[11]='Unità di misura di potenza'; A[14]='Transistore ad effetto di campo'; A[15]='Diodo emettitore di luce'; A[17]='La scienza che studia i moderni aspetti delle telecomunicazioni e della informatica'; A[18]='Data communication equipment'; A[22]='Programmable logic controller'; A[24]='Unità di misura della tensione elettrica'; A[25]='Unità di misura della resistenza elettrica'; A[26]='Circuiti integrati per l\'elaborazione digitale dei segnali'; A[27]='Lo è quello di Wheatstone'; A[28]='Sensore di temperatura a resistenza'; A[29]='Insieme di componenti connessi mediante nodi'; A[30]='Fornisce un codice digitale in grado di rappresentare una posizione'; D = new Array(); D[1]='Tecnologia digitale transistor transistor'; D[2]='Svolgono la funzione di interfaccia fra il sistema digitale e la circuiteria esterna'; D[3]='Codice binario decimale'; D[6]='Transistore ad effetto di campo metallo ossido semiconduttore'; D[8]='Rapporto di reiezione di modo comune'; D[9]='Effetto su cui si basano alcuni interruttori di prossimità'; D[12]='Trasduttori di temperatura che si basano sull\'effetto Seebeck'; D[13]='Termistori a coefficiente positivo'; D[16]='Data terminal equipment'; D[19]='Tecnologia digitale a MOS complementari'; D[20]='Effetto che provoca breakdown nelle giunzioni a semiconduttore'; D[21]='Decodificatore'; D[23]='Unità di misura dell\'intensità di corrente'; 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...
'; } //--> //]]>
-->