'; 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 + 'Down: ' + 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('A','M','P','L','I','F','I','C','A','Z','I','O','N','E',''); L[1] = new Array('','','N','','','','','O','','','','','','',''); L[2] = new Array('','','','','S','O','G','L','I','A','','','','','H'); L[3] = new Array('','','','','','','','L','','','','','','','F'); L[4] = new Array('','','','','','E','M','E','T','T','I','T','O','R','E'); L[5] = new Array('','','','','B','','','T','','R','','','','',''); L[6] = new Array('','','','','A','','','T','','A','','','','',''); L[7] = new Array('','','','','S','','','O','','N','','','','',''); L[8] = new Array('','','','Z','E','N','E','R','','S','','','','',''); L[9] = new Array('','','','','','P','','E','','I','','','','',''); L[10] = new Array('','','','','P','N','P','','','S','','','','',''); L[11] = new Array('','','','','','','','','','T','','','','',''); L[12] = new Array('','','','','','','','','','O','','','','',''); L[13] = new Array('','','','','','','','','','R','','','','',''); L[14] = new Array('','','','','','','','','','E','','','','',''); C = new Array(); C[0] = new Array(1,0,2,0,0,0,0,3,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,0,0,4,0,0,0,0,0,0,0,0,0,5); 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,0,0,6,0,0,0,7,0,0,0,0,0); C[5] = new Array(0,0,0,0,8,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[8] = new Array(0,0,0,9,0,10,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,11,0,0,0,0,0,0,0,0,0,0); C[11] = new Array(0,0,0,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,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,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]='è definita dal rapporto tra la tensione di uscita e quella di ingresso di un amplificatore'; A[4]='tensione minima al di sotto della quale il diodo a semiconduttore non conduce'; A[6]='terminale del transistor attraversato dalla massima corrente'; A[9]='tensione che caratterizza alcuni tipi di diodi utilizzati negli alimentatori stabilizzzati'; A[11]='tipo di transistor nel quale la corrente entra dall\'emettitore'; D = new Array(); D[2]='giunzione tipica dei diodi a semiconduttore'; D[3]='terminale di un transistor di tipo NPN dal quale entra la corrente'; D[5]='parametro di un transistore definito come il rapporto tra la corrente di collettore e quella di base'; D[7]='elemento attivo in un amplificatore'; D[8]='terminale di un transistore attraversato dalla più piccola corrente'; D[10]='tipo di transistore nel quale la corrente entra dalla base'; 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...
'; } //--> //]]>
-->