var q1=0
var q2=0
var q3=0
var q4=0
var q5=0
var q6=0
var q7=0
var q8=0
var q9=0
var q10=0


function gradeMe(form){
	if (form.one[0].checked==true){
		document.images.a1.src="../../quiz/chkright.gif"
		document.images.e1.src="../../quiz/00_blank.gif"
		q1=1
	} else {
		document.images.a1.src="../../quiz/chkwrong.gif"
		document.images.e1.src="../../quiz/ask.gif"
		q1=2
	}
	
	if (form.two[3].checked==true){
		document.images.a2.src="../../quiz/chkright.gif"
		document.images.e2.src="../../quiz/00_blank.gif"
		q2=1
	} else {
		document.images.a2.src="../../quiz/chkwrong.gif"
		document.images.e2.src="../../quiz/ask.gif"
		q2=2
	}
	
	if (form.three[3].checked==true){
		document.images.a3.src="../../quiz/chkright.gif"
		document.images.e3.src="../../quiz/00_blank.gif"
		q3=1
	} else {
		document.images.a3.src="../../quiz/chkwrong.gif"
		document.images.e3.src="../../quiz/ask.gif"
		q3=2
	}
	
	if (form.four[0].checked==true){
		document.images.a4.src="../../quiz/chkright.gif"
		document.images.e4.src="../../quiz/00_blank.gif"
		q4=1
	} else {
		document.images.a4.src="../../quiz/chkwrong.gif"
		document.images.e4.src="../../quiz/ask.gif"
		q4=2
	}
	
	if (form.five[3].checked==true){
		document.images.a5.src="../../quiz/chkright.gif"
		document.images.e5.src="../../quiz/00_blank.gif"
		q5=1
	} else {
		document.images.a5.src="../../quiz/chkwrong.gif"
		document.images.e5.src="../../quiz/ask.gif"
		q5=2
	}
	
	if (form.six[1].checked==true){
		document.images.a6.src="../../quiz/chkright.gif"
		document.images.e6.src="../../quiz/00_blank.gif"
		q6=1
	} else {
		document.images.a6.src="../../quiz/chkwrong.gif"
		document.images.e6.src="../../quiz/ask.gif"
		q6=2
	}
	if (form.seven[2].checked==true){
			document.images.a7.src="../../quiz/chkright.gif"
			document.images.e7.src="../../quiz/00_blank.gif"
			q7=1
		} else {
			document.images.a7.src="../../quiz/chkwrong.gif"
			document.images.e7.src="../../quiz/ask.gif"
			q7=2
	}
	if (form.eight[3].checked==true){
				document.images.a8.src="../../quiz/chkright.gif"
				document.images.e8.src="../../quiz/00_blank.gif"
				q8=1
			} else {
				document.images.a8.src="../../quiz/chkwrong.gif"
				document.images.e8.src="../../quiz/ask.gif"
				q8=2
	}
	if (form.nine[0].checked==true){
				document.images.a9.src="../../quiz/chkright.gif"
				document.images.e9.src="../../quiz/00_blank.gif"
				q9=1
			} else {
				document.images.a9.src="../../quiz/chkwrong.gif"
				document.images.e9.src="../../quiz/ask.gif"
				q9=2
	}
	if (form.ten[2].checked==true){
				document.images.a10.src="../../quiz/chkright.gif"
				document.images.e10.src="../../quiz/00_blank.gif"
				q10=1
			} else {
				document.images.a10.src="../../quiz/chkwrong.gif"
				document.images.e10.src="../../quiz/ask.gif"
				q10=2
	}
}

function explWin(num,ans){
	explain = new Array(7)
	explain[0]=""
	explain[1]="Can you believe that prairies formed about 8,000 years ago!?"
	explain[2]="The word 'prairie' comes from the French language."
	explain[3]="A prairie can be simulated but never be fully restored because the prairie is a very complex ecological system, the prairie developed over vast periods of time and  the natural prairie ecological system covered thousands of square miles."
	explain[4]="Iowa was the stronghold for the tallgrass prairie."
	explain[5]="Indians sometimes set fires on Iowa's prairie to drive game out of the brush, to promote grazing and to make travel easier."
	explain[6]="The soil under the tallgrass prairie is a dense tangle of roots and bulbs."
	explain[7]="Prairie plants put out roots that extend up to 12 feet below the prairie surface."
	explain[8]="Only 1 percent of the North American prairies still exists."
	explain[9]="Prairies once covered 5 percent of the United States."
	explain[10]="The yucca is not a major grass of the tallgrass prairie."

	
	if (num==1){
		newWin=window.open("","newWin","scrollbars=yes,width=200,height=150,scrollbars=auto")
		newWin.document.write("<body onBlur=\"window.close()\" bgcolor=\"#FFFFFF\"><div onBlur=\"window.close()\"><h3><center>You answered this question correctly.</center></h3></div></body>")
		newWin.document.close()
newWin.focus()
	}
	
	else if (num==2){
		newWin=window.open("","newWin","scrollbars=yes,width=200,height=270,scrollbars=auto")
		newWin.document.write("<body onBlur=\"window.close()\" bgcolor=\"#FFFFFF\"><div onBlur=\"window.close()\"><b>"+explain[ans]+"</b><center><img src='../../quiz/quizernie.gif'></center></div></body>")
		newWin.document.close()
newWin.focus()
	}
	
	else {
		newWin=window.open("","newWin","scrollbars=yes,width=200,height=150,scrollbars=auto")
		newWin.document.write("<body onBlur=\"window.close()\" bgcolor=\"#FFFFFF\"><div onBlur=\"window.close()\"><h3><center>You have not answered this question.</center></h3></div></body>")
		newWin.document.close()
newWin.focus()
	}
}
	
	
		
