'; 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('N','A','N','O','C','O','U','L','O','M','B','','','',''); L[1] = new Array('','','','','','','','','','I','','','','',''); L[2] = new Array('','','','','','','','','','C','A','R','I','C','A'); L[3] = new Array('','','','','','','','T','','R','','','','',''); L[4] = new Array('','P','A','R','A','L','L','E','L','O','','','','',''); L[5] = new Array('','','','C','','','','N','','F','','','','',''); L[6] = new Array('','','','','','','M','S','','A','','','','',''); L[7] = new Array('','','','','','','','I','','R','A','M','O','',''); L[8] = new Array('','','','','','','','O','','A','','','','',''); L[9] = new Array('','','','','','','','N','','D','','','','',''); L[10] = new Array('','','','S','E','R','I','E','','','','','','',''); C = new Array(); C[0] = new Array(1,0,0,0,0,0,0,0,0,2,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,0,0,0,0,0,3,0,0,0,0,0); C[3] = new Array(0,0,0,0,0,0,0,4,0,0,0,0,0,0,0); C[4] = new Array(0,5,0,6,0,0,0,0,0,0,0,0,0,0,0); C[5] = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); C[6] = new Array(0,0,0,0,0,0,7,0,0,0,0,0,0,0,0); C[7] = new Array(0,0,0,0,0,0,0,0,0,8,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,9,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('','','','','','','','','','','','','','',''); A = new Array(); A[1]='miliardesimo di unità di carica elettrica'; A[3]='è espressa dal prodotto della capacità di un condensatore per la tensione ai capi delle sue armature'; A[5]='due condensatori collegati in .... hanno capacità complessiva uguale alla somma delle singole capacità'; A[7]='millesimo di secondo (abbreviato)'; A[8]='lato di un circuito elettrico'; A[9]='la formula per calcolare la capacità complessiva di due condensatori collegati in .... è analoga a quella usata per calcolare due resistenze in parallelo'; D = new Array(); D[2]='milionesimo di farad'; D[4]='la .... ai capi di un condensatore è uguale al rapporto tra la carica sulle sue armature e la sua capacità'; D[6]='formula della costante di tempo di un circuito resistenza - condensatore'; 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...
'; } //--> //]]>
-->