I am looking to build a quiz like the one used for quizpoint.

So far i have an associative array
var quiz = new array(array("Question 1", "Answer 1"),array("Question 2", "Answer 2"));
And so on.

A random question will be asked and its answer displayed among 3 other randomly selected answers.
After going through 10 or 20 questions the results are shown i.e. 18/20 along with the questions and correct answers showing the user which they got right or wrong.

Any help how to make it or if you know a site that does it for you would be great