		var thereq, quizname, questionnum, correct;
		quizname = "appletrivia1";
		questionnum = 0;
		correct = 0;
		function loaddiv(query)  {
			theurl = "http://macmost.com/quiz/quizdiv.php?"+query;
			document.getElementById("quizdiv").innerHTML = "";
			if (window.XMLHttpRequest) {
				thereq = new XMLHttpRequest();
				thereq.onreadystatechange = processReqChange;
				thereq.open("GET", theurl, true);
				thereq.send(null);
			} else if (window.ActiveXObject) {
				thereq = new ActiveXObject("Microsoft.XMLHTTP");
				if (thereq) {
					thereq.onreadystatechange = processReqChange;
					thereq.open("GET", theurl, true);
					thereq.send();
				}
			}
		}
		function processReqChange() {
			if (thereq.readyState == 4) {
				if (thereq.status == 200) {
					document.getElementById("quizdiv").innerHTML = thereq.responseText;
				}
			}
		}
		function quizAnswer(n,q,c,s) {
			loaddiv("quiz="+quizname+"&question="+q+"&answer="+n+"&c="+c+"&s="+s);
		}		
		function nextQuestion(q,c) {
			loaddiv("quiz="+quizname+"&question="+q+"&c="+c+"&");
		}
		loaddiv("quiz="+quizname+"&question=0&");
