/***********************************************
* 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=9

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='a' //question 1 solution
correctchoices[2]='a' //question 2 solution, and so on.
correctchoices[3]='b'
correctchoices[4]='b'
correctchoices[5]='a'
correctchoices[6]='b'
correctchoices[7]='a'
correctchoices[8]='a'
correctchoices[9]='b'
correctchoices[10]='b'

/////Don't edit beyond here//////////////////////////

function gradeit(){
//check question
var ischeck=true

for (q=1;q<=totalquestions;q++){

	var thequestion=eval("document.myquiz.question"+q)
	
	if (thequestion[0].checked==false && thequestion[1].checked==false)	
		ischeck=false
}

if(ischeck==false){
	alert("Please, answer all the questions first")
	return false;
}
else
{

	
}
}
