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
var q11=0
var q12=0
var q13=0
var q14=0
var q15=0
var q16=0
var q17=0
var q18=0
var q19=0
var q20=0


function gradeMe(form){
	if (form.one[1].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[0].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[0].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[0].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[1].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[0].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[0].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
	}
if (form.eleven[0].checked==true){
		document.images.a11.src="../../quiz/chkright.gif"
		document.images.e11.src="../../quiz/00_blank.gif"
		q11=1
	} else {
		document.images.a11.src="../../quiz/chkwrong.gif"
		document.images.e11.src="../../quiz/ask.gif"
		q11=2
	}
	
	if (form.twelve[0].checked==true){
		document.images.a12.src="../../quiz/chkright.gif"
		document.images.e12.src="../../quiz/00_blank.gif"
		q12=1
	} else {
		document.images.a12.src="../../quiz/chkwrong.gif"
		document.images.e12.src="../../quiz/ask.gif"
		q12=2
	}
	
	if (form.thirteen[1].checked==true){
		document.images.a13.src="../../quiz/chkright.gif"
		document.images.e13.src="../../quiz/00_blank.gif"
		q13=1
	} else {
		document.images.a13.src="../../quiz/chkwrong.gif"
		document.images.e13.src="../../quiz/ask.gif"
		q13=2
	}
	
	if (form.fourteen[0].checked==true){
		document.images.a14.src="../../quiz/chkright.gif"
		document.images.e14.src="../../quiz/00_blank.gif"
		q14=1
	} else {
		document.images.a14.src="../../quiz/chkwrong.gif"
		document.images.e14.src="../../quiz/ask.gif"
		q14=2
	}
	
	if (form.fifteen[0].checked==true){
		document.images.a15.src="../../quiz/chkright.gif"
		document.images.e15.src="../../quiz/00_blank.gif"
		q15=1
	} else {
		document.images.a15.src="../../quiz/chkwrong.gif"
		document.images.e15.src="../../quiz/ask.gif"
		q15=2
	}
	
	if (form.sixteen[0].checked==true){
		document.images.a16.src="../../quiz/chkright.gif"
		document.images.e16.src="../../quiz/00_blank.gif"
		q16=1
	} else {
		document.images.a16.src="../../quiz/chkwrong.gif"
		document.images.e16.src="../../quiz/ask.gif"
		q16=2
	}
	if (form.seventeen[0].checked==true){
			document.images.a17.src="../../quiz/chkright.gif"
			document.images.e17.src="../../quiz/00_blank.gif"
			q17=1
		} else {
			document.images.a17.src="../../quiz/chkwrong.gif"
			document.images.e17.src="../../quiz/ask.gif"
			q17=2
	}
	if (form.eighteen[1].checked==true){
				document.images.a18.src="../../quiz/chkright.gif"
				document.images.e18.src="../../quiz/00_blank.gif"
				q18=1
			} else {
				document.images.a18.src="../../quiz/chkwrong.gif"
				document.images.e18.src="../../quiz/ask.gif"
				q18=2
	}
	if (form.nineteen[1].checked==true){
				document.images.a19.src="../../quiz/chkright.gif"
				document.images.e19.src="../../quiz/00_blank.gif"
				q19=1
			} else {
				document.images.a19.src="../../quiz/chkwrong.gif"
				document.images.e19.src="../../quiz/ask.gif"
				q19=2
	}
	if (form.twenty[0].checked==true){
				document.images.a20.src="../../quiz/chkright.gif"
				document.images.e20.src="../../quiz/00_blank.gif"
				q20=1
			} else {
				document.images.a20.src="../../quiz/chkwrong.gif"
				document.images.e20.src="../../quiz/ask.gif"
				q20=2
	}
}

function explWin(num,ans){
	explain = new Array(7)
	explain[0]=""
	explain[1]="Answer - False  <P>Farmers grow corn on every continent, except Antarctica. Hybrid varieties of corn have been developed to adapt to specific growing condition and locations worldwide."
	explain[2]="Answer - True <P>The silk is the female part while the tassel is the male part."
	explain[3]="Answer - True <P>In the U.S., the number of bushels of corn produced measures more than double that of any other grain crop."
	explain[4]="Answer - True <P>One bushel of corn will sweeten more than 400 cans of pop."
	explain[5]="Answer - True <P>This area is known as the 'Corn Belt.'"
	explain[6]="Answer - False <P>Corn is the main ingredient in most dry pet food."
	explain[7]="Answer - False <P>Dent corn is the most important commercial type of corn grown in the United States. The kernel of dent corn forms a dent on the crown of the kernel at maturity."
	explain[8]="Answer - True <P>Dent corn and flint corn are commonly called 'field corn' because they are fed to animals.  Sweet corn and popcorn and are used for human food."
	explain[9]="Answer - True <p>Hybrid corn is made by crossing two or more corn plants to produce a reliable corn seed."
	explain[10]="Answer - True <P> Corn is harvested by a large machine called a combine.  The combine cuts off the plant, removes the ear of corn and separates the kernels from the corn cob."
	explain[11]="Answer - True <P> Corn kernels are used to make fructose, a liquid sugar used to sweeten soda pop and bakery goods."
	explain[12]="Answer - True <P> Ethanol is made from corn and is used as fuel for cars, trucks and buses."
	explain[13]="Answer - False <P> The area known as the Pacific Rim region (in Asia) is emerging as the world's fastest growing market for U.S. corn. There, most of the corn is fed to livestock to produce food for humans. The majority of the world's population is located in the Pacific Rim region."
	explain[14]="Answer - True <P> Examples of uses of corn include: 1) A substitute for phosphate, corn-derived citric acid increases the cleaning power and decreases the volume of laundry detergents needed 2) 'Packing peanuts' made of nearly 100 percent corn. 3) Corn-based ink is now replacing printer's ink that was made from 100 percent petroleum products. This product makes it safe for placemats and packaging where ink may come in contact with food. 4) Hydrosorb, a super absorbent cornstarch, absorbs 300 times its weight and is used in some baby diapers."
	explain[15]="Answer - True <P> Corn has become America's favorite sweetener, capturing more than 50 percent of the nutritive (non-diet) sweetener market. Every major non-diet soft drink on the market uses high fructose corn syrup as a sweetener. Many powdered drinks, like lemonades and fruit drinks, use crystalline fructose made from corn."
	explain[16]="Answer - True <P> Nearly every single sheet of printing paper uses cornstarch to improve printability. It is also used in the production of paper packaging materials such as corrugated cardboard."
	explain[17]="Answer - True <P> Corn serves as a primary livestock feed source. More than half of the crop puts meat on America's dinner table."
	explain[18]="Answer - False <P> Corn-on-the-cob and canned or frozen corn at the grocery store come from sweet corn. The corn you grow in your garden also is a variety of sweet corn. But the most abundant type of corn grown in the United States is actually field or dent corn. Almost all of the corn you see in farm fields is dent corn. <P> Unlike sweet corn, dent corn has a hard outer portion about the thickness of your fingernail. The inner portion of the corn kernel is soft and floury. Dent corn is used to make starches, oils, livestock feed, ethanol fuel and many other products like crayons, paints and paper."
	explain[19]="Answer - False <P> Scientists believe corn was originally cultivated by Indians in the highlands of Mexico thousands of years ago."
	explain[20]="Answer - True <P> Scientists believe people living in central Mexico developed corn at least 7000 years ago."
	
	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=300,height=424,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()
	}
}
	
	
		