/***********************************************
* JavaScriptKit.com Multiple Choice Quiz Script (http://www.javascriptkit.com)
* Copyright 2003 JavaScript Kit- http://www.javascriptkit.com
* This notice and footnote must stay intact for use
* Visit JavaScript Kit (http://www.javascriptkit.com/) for full source code
***********************************************/

//Enter total number of questions:
var totalquestions=8

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='c, want deze derdegraads vergelijking is niet exact op te lossen, net zoals vele andere vergelijkingen. De abc-formule kun je alleen bij kwadratische vergelijkingen gebruiken, dus hier ook niet! Dus blijft de GR over en gebruik je de optie ZERO, omdat rechts van het = teken nul staat. Als er iets anders op die plaats staat dan voer je dat in als Y<sub>2</sub> en kies je optie INTERSECT.' //question 1 solution
correctchoices[2]='c, want berekend moet worden (y<sub>b</sub>-y<sub>a</sub>)/(x<sub>b</sub>-x<sub>a</sub>)' //question 2 solution, and so on.
correctchoices[3]='b, want een constante toename/afname <i>in procenten</i> betekent altijd exponentiele groei. Een constante toename/afname in hoeveelheid betekent lineaire groei.'
correctchoices[4]='a, want de groeifactor per tien jaar is 1,48. De groeifactor per jaar is dus 1,48<sup>1/10</sup>=1,04. De toename is dus 4% per jaar.'
correctchoices[5]='a, want bedenk dat 54,39 overeen komt met 121%. De oude prijs is 100%. En 54,39/1,21=44,95'
correctchoices[6]='b, want als 6/3=2 dan geldt ook 3=6/2, dus hier geldt x=300/12=25. Je kunt ook kruislings vermenigvuldigen nadat je 12 verandert in 12/1.'
correctchoices[7]='c, want tussen de 18 en de p staat een maal-teken. Het tegenovergestelde van vermenigvuldigen is delen dus moet je beide zijden van de vergelijking door 18 delen. En 24,3/18=1,35.'
correctchoices[8]='b, want de kans is (1/6)<sup>2</sup>*(5/6)<sup>2</sup>*6. Die zes is het aantal manieren waarop je twee van de vier keer zes kunt gooien en bereken je met een combinatie van 2 uit 4. Met de GR optie 4nCr2.'


/////Don't edit beyond here//////////////////////////

function gradeit(){
var incorrect=null
for (q=1;q<=totalquestions;q++){
	var thequestion=eval("document.myquiz.question"+q)
	for (c=0;c<thequestion.length;c++){
		if (thequestion[c].checked==true)
		actualchoices[q]=thequestion[c].value
		}
		
	if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice
		if (incorrect==null)
		incorrect=q
		else
		incorrect+="/"+q
		}
	}

if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("Your browser does not accept cookies. Please adjust your browser settings.")
else
window.location="results.htm"
}


function showsolution(){
var win2=window.open("","win2","width=600,height=500, noscrollbars")
win2.focus()
win2.document.open()
win2.document.write('<font face="Arial" size="2">')
win2.document.write('<title>Antwoorden</title>')
win2.document.write('<body bgcolor="#B0C4DE">')
win2.document.write('<center><h2>Antwoorden van de test</h2></center>')
for (i=1;i<=totalquestions;i++){
for (temp=0;temp<incorrect.length;temp++){
if (i==incorrect[temp])
wrong=1
}
if (wrong==1){
win2.document.write("Vraag "+i+" = "+correctchoices[i].fontcolor("red")+"<br>")
wrong=0
}
else
win2.document.write("Vraag "+i+" = "+correctchoices[i]+"<br>")
}
win2.document.write('</center></font>')
win2.document.write("<h5>Opmerking: de antwoorden in rood horen bij de fout beantwoorde vragen.</h5><p align='center'><small><a href='http://www.javascriptkit.com' target='_new'>JavaScript Kit quiz script</a></small>")
win2.document.close()
}
