

function questionItem(id,q,ansOps,ans){
	this.qID = id;
	this.question = q;
	this.arrAnswers = ansOps;
	this.correctAnswer = ans; 
}

function storeQuestion(anItem,qName){
	var url='../storeQuestions.php';
	url+='?q='+anItem.question+'&a1='+anItem.arrAnswers[0]+'&a2='+anItem.arrAnswers[1]+'&a3='+anItem.arrAnswers[2]+'&a4='+anItem.arrAnswers[3]+'&ca='+anItem.correctAnswer+'&qName='+qName;
	alert(url);
	var xmldoc=ajaxPHP(url,2);
	if (xmldoc)
		alert('success');
}
