var min
var sec
var ShowReadingAgain = 'Show reading again'
var platform = 'win'
winrightchar = ':-)'
winwrongchar = 'X'
DoneStatus = new Array();
DoneStatus[1] = '0';
DoneStatus[2] = '0';
DoneStatus[3] = '0';
DoneStatus[4] = '0';
DoneStatus[5] = '0';
DoneStatus[6] = '0';
DoneStatus[7] = '0';
DoneStatus[8] = '0';
DoneStatus[9] = '0';
DoneStatus[10] = '0';
Responses = new Array();
Responses[1] = 'Sorry! Try again. Hint: "hot" ends with one vowel and one consonant.';
Responses[2] = 'Correct! Well done.';
Responses[3] = 'Sorry! Try again. Hint: comparatives usually end in -er.';
Responses[4] = 'Sorry! Try again. Hint: "hottest" is a superlative.';
Responses[6] = 'Sorry! Try again. Hint: this is a comparative.';
Responses[7] = 'Sorry! Try again. Hint: superlatives usually end in -est.';
Responses[8] = 'Correct! Well done.';
Responses[9] = 'Sorry! Try again. Hint: this word ends with two vowels and a consonant.';
Responses[11] = 'Sorry! Try again. Hint: the y at the end should be changed.';
Responses[12] = 'Sorry! Try again. Hint: This word has only two syllables.';
Responses[13] = 'Correct! Well done.';
Responses[14] = 'Sorry! Try again. Hint: you don\'t need "more" and -er together.';
Responses[16] = 'Sorry! Try again. Hint: this word ends with one vowel and one consonant.';
Responses[17] = 'Correct! Well done.';
Responses[18] = 'Sorry! Try again. Hint: there is no y in "sad".';
Responses[19] = 'Sorry! Try again. Hint: there is no y in "sad".';
Responses[21] = 'Sorry! Try again. Hint: that\'s the comparative.';
Responses[22] = 'Sorry! Try again. Hint: that\'s a comparative, and it\'s spelled wrongly too!';
Responses[23] = 'Sorry! Try again. Hint: the y should be changed.';
Responses[24] = 'Correct! Well done.';
Responses[26] = 'Sorry! Try again. Hint: that\'s a comparative, and it\'s spelled wrongly too!';
Responses[27] = 'Sorry! Try again. Hint: that\'s the comparative.';
Responses[28] = 'Sorry! Try again. Hint: where did the i come from?';
Responses[29] = 'Correct! Well done.';
Responses[31] = 'Sorry! Try again. Hint: that\'s just the adjective form.';
Responses[32] = 'Correct! Well done.';
Responses[33] = 'Sorry! Try again. Hint: that\'s the comparative form.';
Responses[34] = 'Sorry! Try again. Hint: "unpleasant" has three syllables.';
Responses[36] = 'Sorry! Try again. Hint: "destructive" has three syllables.';
Responses[37] = 'Correct! Well done.';
Responses[38] = 'Sorry! Try again. Hint: destructive has three syllables.';
Responses[39] = 'Sorry! Try again. Hint: you don\'t need "more" and er together.';
Responses[41] = 'Correct! Well done.';
Responses[42] = 'Sorry! Try again. Hint: where did the i come from?';
Responses[43] = 'Sorry! Try again. Hint: "soft" ends with one vowel and two consonants.';
Responses[44] = 'Sorry! Try again. Hint: "soft" has only one syllable.';
Responses[46] = 'Sorry! Try again. Hint: what kind of word is "heat"?';
Responses[47] = 'Sorry! Try again. Hint: what kind of word is "heat"?';
Responses[48] = 'Sorry! Try again. Hint: what kind of word is "heat"?';
Responses[49] = 'Sorry! Try again. Hint: what kind of word is "heat"?';
Responses[50] = 'Correct! Well done. "Heat" is a noun -- it doesn\'t have a comparative or a superlative form! The adjective would be "hot", not "heat".';
IndicatorName = new Array();
IndicatorName[1] = 'document.QuizForm.Q1A';
IndicatorName[2] = 'document.QuizForm.Q1B';
IndicatorName[3] = 'document.QuizForm.Q1C';
IndicatorName[4] = 'document.QuizForm.Q1D';
IndicatorName[6] = 'document.QuizForm.Q2A';
IndicatorName[7] = 'document.QuizForm.Q2B';
IndicatorName[8] = 'document.QuizForm.Q2C';
IndicatorName[9] = 'document.QuizForm.Q2D';
IndicatorName[11] = 'document.QuizForm.Q3A';
IndicatorName[12] = 'document.QuizForm.Q3B';
IndicatorName[13] = 'document.QuizForm.Q3C';
IndicatorName[14] = 'document.QuizForm.Q3D';
IndicatorName[16] = 'document.QuizForm.Q4A';
IndicatorName[17] = 'document.QuizForm.Q4B';
IndicatorName[18] = 'document.QuizForm.Q4C';
IndicatorName[19] = 'document.QuizForm.Q4D';
IndicatorName[21] = 'document.QuizForm.Q5A';
IndicatorName[22] = 'document.QuizForm.Q5B';
IndicatorName[23] = 'document.QuizForm.Q5C';
IndicatorName[24] = 'document.QuizForm.Q5D';
IndicatorName[26] = 'document.QuizForm.Q6A';
IndicatorName[27] = 'document.QuizForm.Q6B';
IndicatorName[28] = 'document.QuizForm.Q6C';
IndicatorName[29] = 'document.QuizForm.Q6D';
IndicatorName[31] = 'document.QuizForm.Q7A';
IndicatorName[32] = 'document.QuizForm.Q7B';
IndicatorName[33] = 'document.QuizForm.Q7C';
IndicatorName[34] = 'document.QuizForm.Q7D';
IndicatorName[36] = 'document.QuizForm.Q8A';
IndicatorName[37] = 'document.QuizForm.Q8B';
IndicatorName[38] = 'document.QuizForm.Q8C';
IndicatorName[39] = 'document.QuizForm.Q8D';
IndicatorName[41] = 'document.QuizForm.Q9A';
IndicatorName[42] = 'document.QuizForm.Q9B';
IndicatorName[43] = 'document.QuizForm.Q9C';
IndicatorName[44] = 'document.QuizForm.Q9D';
IndicatorName[46] = 'document.QuizForm.Q10A';
IndicatorName[47] = 'document.QuizForm.Q10B';
IndicatorName[48] = 'document.QuizForm.Q10C';
IndicatorName[49] = 'document.QuizForm.Q10D';
IndicatorName[50] = 'document.QuizForm.Q10E';
rightchar = unescape(winrightchar)
wrongchar = unescape(winwrongchar)
var Score = 0;
var Tries = 0;
var Percent = 0;
var YourScore = 'Your score is';
var DefaultRight = 'Correct!';
var DefaultWrong = 'Sorry! Try again.';
function CheckAnswer(QNum, AnsNum, Correct) {
whichfb = (5*(QNum-1) + AnsNum)
if (Correct == 1) {
if (DoneStatus[QNum] != '1'){
Tries = Tries + 1;
DoneStatus[QNum] = '1';
Score = Score + 1;}
if (eval(IndicatorName[whichfb]) != null){
eval(IndicatorName[whichfb]).value = rightchar}
Feedback = Responses[whichfb]
if (Feedback == '') {Feedback = DefaultRight}
Percent = Math.floor(Score*100/Tries) + '%';
Feedback = Feedback + '
' + YourScore + ' ' + Percent + '.';
var i = 0;
var AllDone = true;
for (i=1; i
AllDone = false;
}
}
if (AllDone == true){
Feedback += '
';
}
WriteFeedback(Feedback);
}
else {
if (DoneStatus[QNum] != '1'){
Tries = Tries + 1;}
if (eval(IndicatorName[whichfb]) != null){
eval(IndicatorName[whichfb]).value = wrongchar}
Feedback = Responses[whichfb]
if (Feedback == '') {Feedback = DefaultWrong}
WriteFeedback(Feedback)
}
}
function WriteFeedback(Feedback) {
var x=document.getElementById("xfeedback")
var e = window.event
getMouseXY(e)
//x.style.top="300px"
//x.style.left="100px"
//alert(mY)
x.style.left=mX+20+"px"
x.style.top=mY-25+"px"
x.style.visibility="visible"
x.innerHTML=Feedback
//Object.style.visibility=visible|hidden|collapse
//alert(Feedback);
}
function getMouseXY(e) {
var IE = document.all?true:false;
if (IE) { // grab the x-y pos.s if browser is IE
mX = document.body.scrollLeft;
mY = document.body.scrollTop;
}
else { // grab the x-y pos.s if browser is NS
mX = e.pageX;
mY = e.pageY;
}
}