function grade()
	{

	 var gogtta=0
	 var cccl
	 var cccb

//	 if (j1==1)
	 if (document.quizform.q1.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q2.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q3.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q4.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q5.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q6.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q7.selectedIndex==4)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q8.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q9.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q10.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q11.selectedIndex==3)
		{  gogtta=gogtta+1;  }

	 if (gogtta > 10 )
		{  cccl="you're a Genius!"  }
	else if (gogtta > 9 )
		{  cccl="You are Smart!"  }
	else if (gogtta > 7 )
		{  cccl="Excellent!"  }
	else if (gogtta > 4 )
		{  cccl="Average!"  }
	else if (gogtta > 1 )
		{  cccl="I'm sure you are good at something!"  }
	else
		{  cccl="no comment"  }

	 if (gogtta > 10 )
		{  cccb="You should think about being a Horse Trainer!"  }
	else if (gogtta > 9 )
		{  cccb="You should have a Dog for a Pet!"  }
	else if (gogtta > 7 )
		{  cccb="You should think about having Fish as a Pet!"  }
	else if (gogtta > 4 )
		{  cccb="A Hamster would be best for you!"  }
	else if (gogtta > 1 )
		{  cccb="You should have a Cat for a Pet!"  }
	else
		{  cccb="still no comment"  }

	var s1 = "<HTML>"+
	"<title>Pets and Domestic Animals Quiz 4</title>"+
	"<META name='description' content='Free Quiz'>"+
	"<BODY bgcolor='White' TEXT='#000000' LINK='#0000c0' ALINK='#0000c0' VLINK='#0000c0'>"+
    "<a name='top'></A><P><CENTER><FONT SIZE=2 COLOR='#000000'>"+
	"<P><H2>Results for Quiz 4</CENTER></H21>"+
	"<P><H3>You got a score of "+gogtta+" out of 11 <br> Your rating:<font color='#ff0000'> "+cccl+" </font><br>(The correct answers and interesting information are listed below.)</CENTER></H3>"+
	"<P><font color='#000000' size='4'><i>Your answers not only can tell your current intelligence, but the combination can also forcast what Pet would be right for you:</i></CENTER>"+
	"<P><H3>Your Pet forcast is:<font color='#ff0000'> "+cccb+"</font></CENTER></H3></font></h3>"+
	"<BR><font color='#0000c0' size='4'>Have at least 10 friends take this quiz and some awesome, astonishing and amazing event will happen.</font>"+
	"<BR>"+
	"<P><font color='#000000' size='4'><u>Correct Answers and Info:</u></font></font></font></CENTER>"+
	"<P>1.answer 2"+
	"<BR>One of the Tibetans, favorite drinks is rancid yak butter tea, definitely an acquired taste. The rumor about yak milk probably came about from improper milking. Rough milking can damage the udder and cause blood to appear in the milk, turning it pink."+
	"<P>2.answer 1"+
	"<BR>The Basenji is intelligent, independent, and very clean. They are often called [cats in dog suits]."+
	"<P>3.answer 3"+
	"<BR>The Bubonic Plague (or Black Death) was the fatal disease, transmitted to people by rat fleas, which spread throughout Europe like wildfire. If only the Church of England hadn't condemned cats as being evil!"+
	"<P>4.answer 2"+
	"<BR>He fades until only his smile can be seen."+
	"<P>5.answer 1"+
	"<BR>Despite the frequent association of Churchill with the British symbol, the bulldog, he didn't own one. He doted on his Miniature Poodle, who was named Rufus."+
	"<P>6.answer 3"+
	"<BR>His trainer thought that early May, the time of the Kentucky Derby, was too early in the year for him to race. His only loss in a race was to a horse named, appropriately, Upset."+
	"<P>7.answer 4"+
	"<BR>Picasso claimed that he would see Kabul in his mind while painting portraits, thus encouraging him to paint people with longer noses and finer, fluffier hair."+
	"<P>8.answer 2"+
	"<BR>He also loved a little dog called Diamond. It was often said that he preferred animals to people."+
	"<P>9.answer 1"+
	"<BR>Reindeer milk is the richest of any domestic species, it has a fat content of up to 22 percent! (Cow's milk averages 3-4 percent.) Many Lapps use reindeer milk. Mongolian warriors made yogurt and condensed milk from horse milk, and even today, an alcoholic drink called kumiss is made from horse's milk in Mongolia. There are actually horse dairies (using mainly draft horses) in Belgium! Sheep's milk is used primarily in cheesemaking, with the East Friesian being the most milkable sheep breed."+
	"<P>10.answer 3"+
	"<BR>Believe it or not, the first step in grooming a llama is to blow all of the dirt and straw out of its coat. You can buy special blowers made just for this purpose, or you can use a garden-variety leaf blower!"+
	"<P>11.answer 3"+
	"<BR>The Manx, originating on the Isle of Man, a small island off the English coast in the Irish Sea, also has the shortest body of all cat breeds."+
    "<BR>"

	"<BR>"

	var s2=""

    
     document.write(s1+s2);   
//   writedocument(gogtta);	
	 }