';
if (is.CRAPBrowser){ReadingText=ResolveAllURLs(ReadingText);}
var NavBar='';
var TitleCode = '';
TitleCode += '' + ExerciseTitle + ' ';
TitleCode += '' + ExerciseSubtitle + ' ';
TitleCode += '';
var QButtonsOpener = '';
QButtonsOpener += '
';
var TableOpener = '';
var QRow = '';
QRow += '';
QRow += '';
var ARow = '';
var BtnRow = '';
TableCloser = '
';
QRow += '[QNumber]
[Question] ';
QRow += '
';
ARow += '[AnswerBox]
';
BtnRow += '';
BtnRow += '';
BtnRow += '
';
var LongAnswer = '';
var ShortAnswer = '';
function GoBack(){
var BackSkip = history.length - PreviousPage;
if (BackSkip > 0){
history.go((BackSkip+1)*-1);
}
else{
parent.history.back();
}
}
function TrapReturn(ShowHint,QNum){
//if not yet answered correctly, call CheckAnswer
if (Status[QNum][0] < 1){
CheckAnswer(ShowHint,QNum);
return;
}
//otherwise, move on to the next question if showing serially
else{
if (ShowOneByOne == true){
setTimeout('ChangeQ(1)', 50);
}
}
}
function ReduceItems(){
var ItemToDump=0;
var j=0;
while (I.length > QsToShow){
ItemToDump = Math.floor(I.length*Math.random());
for (j=ItemToDump; j<(I.length-1); j++){
I[j] = I[j+1];
}
I.length = I.length-1;
}
}
function Shuffle(InArray){
Temp = new Array();
var Len = InArray.length;
var j = Len;
for (var i=0; i" https:="" i5.plug.it="" cmp="" qciol.min.js'="" async="true">
';
OutString += '
';
//Write it to the frame
TopFrame.document.clear();
TopFrame.document.open();
TopFrame.document.write(OutString);
TopFrame.document.close();
}
function StartUp(){
//Write the top frame
WriteFeedback(Instructions);
if ((is.mac)&&(is.ns)) {
FocusBoxes = false;
}
//Reduce array if required
if (QsToShow < I.length){
ReduceItems();
}
//Shuffle stuff if required
if (ShuffleQs == true){
I = Shuffle(I);
}
//Create arrays
CreateStatusArrays();
ShowReading();
//Show the first question or all of them
if (ShowOneByOne == false){
ShowAllQs();
}
else{
ShowQuestion(CurrQNum);
}
//Focus the first box
var Box = eval('BottomFrame.document.QForm0.Guess');
if (Box != null){
Box.focus();
}
}
I = new Array();
I[0] = new Array();
I[0][0]='Il limite della funzione n.1 è:';
I[0][1] = new Array();
I[0][1][0] = new Array();
I[0][1][0][0]='1/11';
I[0][1][1] = new Array();
I[0][1][1][0]='UN UNDICESIMO';
I[0][1][2] = new Array();
I[0][1][2][0]='';
I[0][1][3] = new Array();
I[0][1][3][0]='';
I[0][1][4] = new Array();
I[0][1][4][0]='';
I[0][1][5] = new Array();
I[0][1][5][0]='';
I[0][1][6] = new Array();
I[0][1][6][0]='';
I[0][1][7] = new Array();
I[0][1][7][0]='';
I[0][1][8] = new Array();
I[0][1][8][0]='9';
I[1] = new Array();
I[1][0]='Il limite della funzione n. 2 è:';
I[1][1] = new Array();
I[1][1][0] = new Array();
I[1][1][0][0]='0';
I[1][1][1] = new Array();
I[1][1][1][0]='ZERO';
I[2] = new Array();
I[2][0]='Il limite della funzione n.3 è:';
I[2][1] = new Array();
I[2][1][0] = new Array();
I[2][1][0][0]='5';
I[2][1][1] = new Array();
I[2][1][1][0]='CINQUE';
I[3] = new Array();
I[3][0]='Il limite della funzione n.4 è:';
I[3][1] = new Array();
I[3][1][0] = new Array();
I[3][1][0][0]='8/11';
I[3][1][1] = new Array();
I[3][1][1][0]='OTTO UNDICESIMI';
I[4] = new Array();
I[4][0]='Il limite della funzione n.5 è:';
I[4][1] = new Array();
I[4][1][0] = new Array();
I[4][1][0][0]='0';
I[4][1][1] = new Array();
I[4][1][1][0]='ZERO';
I[4][1][2] = new Array();
I[4][1][2][0]='';
I[4][1][3] = new Array();
I[4][1][3][0]='';
I[4][1][4] = new Array();
I[4][1][4][0]='5';
I[5] = new Array();
I[5][0]='Il limite della funzione n.6 è:';
I[5][1] = new Array();
I[5][1][0] = new Array();
I[5][1][0][0]='3';
I[5][1][1] = new Array();
I[5][1][1][0]='TRE';
I[5][1][2] = new Array();
I[5][1][2][0]='';
I[5][1][3] = new Array();
I[5][1][3][0]='';
I[5][1][4] = new Array();
I[5][1][4][0]='';
I[5][1][5] = new Array();
I[5][1][5][0]='6';
I[6] = new Array();
I[6][0]='Il limite della funzione n.7 è:';
I[6][1] = new Array();
I[6][1][0] = new Array();
I[6][1][0][0]='2';
I[6][1][1] = new Array();
I[6][1][1][0]='DUE';
I[6][1][2] = new Array();
I[6][1][2][0]='';
I[6][1][3] = new Array();
I[6][1][3][0]='';
I[6][1][4] = new Array();
I[6][1][4][0]='';
I[6][1][5] = new Array();
I[6][1][5][0]='';
I[6][1][6] = new Array();
I[6][1][6][0]='7';
I[7] = new Array();
I[7][0]='Il limite della funzione n.8 è:';
I[7][1] = new Array();
I[7][1][0] = new Array();
I[7][1][0][0]='0';
I[7][1][1] = new Array();
I[7][1][1][0]='ZERO';
I[7][1][2] = new Array();
I[7][1][2][0]='';
I[7][1][3] = new Array();
I[7][1][3][0]='';
I[7][1][4] = new Array();
I[7][1][4][0]='';
I[7][1][5] = new Array();
I[7][1][5][0]='';
I[7][1][6] = new Array();
I[7][1][6][0]='';
I[7][1][7] = new Array();
I[7][1][7][0]='8';
I[8] = new Array();
I[8][0]='Il limite della funzione n.9 è:';
I[8][1] = new Array();
I[8][1][0] = new Array();
I[8][1][0][0]='1/3';
I[8][1][1] = new Array();
I[8][1][1][0]='UN TERZO';
Status = new Array();
function CreateStatusArrays(){
Status.length = 0;
for (i=0; 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;
}
function ChangeQ(ChangeBy){
var NewNum = CurrQNum + ChangeBy;
if ((NewNum >= 0)&&(NewNum Longest){
Longest = I[QNum][1][i][0].length;
}
}
var AnsBox = '';
if (Longest > 20){
AnsBox = LongAnswer;
}
else{
AnsBox = ReplaceStuff('[AnswerSize]', (Longest + ''), ShortAnswer);
}
var AnsRow = ReplaceStuff('[AnswerBox]', AnsBox, ARow);
Temp += AnsRow;
Temp += BtnRow;
Temp = ReplaceStuff('[QNumber]', QNum+1, Temp);
Temp = ReplaceStuff('[QNum]', QNum, Temp);
return Temp;
}
function DisplayExercise(StuffToDisplay){
//Build the output string
var OutString = '';
OutString += '';
OutString += '
';
OutString += '