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==4)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q3.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q4.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q5.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q6.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q7.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q8.selectedIndex==3)
		{  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==1)
		{  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 Veterinian!"  }
	else if (gogtta > 9 )
		{  cccb="You should have a Horse for a Pet!"  }
	else if (gogtta > 7 )
		{  cccb="You should think about having Bird 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 3</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 3</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>A pullet, a male chicken under 1 year of age is called a cockerel."+
	"<P>2.answer 4"+
	"<BR>Tom Kitten was officially Caroline's cat, and got his name from Beatrix Potter's cat-centered children's book [The Tale of Tom Kitten]."+
	"<P>3.answer 1"+
	"<BR>The poodle is actually a German breed. Its name comes from the German [pudeln], to splash around in puddles."+
	"<P>4.answer 2"+
	"<BR>In animal intelligence tests, pigs score as high or higher than dogs. There's a reason that the pigs ran [Animal Farm]."+
	"<P>5.answer 3"+
	"<BR>The actual verse goes: [Wherever the cat of the house is black, the lasses of lovers will have no lack]. The reason for this rhyme has something to do with the way tomcats will gather around a house harboring a female cat in season."+
	"<P>6.answer 1"+
	"<BR>Bucephalus means [ox head]. The white star on his forehead was shaped like one."+
	"<P>7.answer 1"+
	"<BR>The GSD, despite being in the AKC Herding group, is hardly ever used to herd, it is usually thought of as a protection or sport dog."+
	"<P>8.answer 3"+
	"<BR>This fish is also known as a Wrestling Halfbeak. The mouth can be used to steer and balance and they are excellent jumpers. These guys are vivaparous, they give birth to live young."+
	"<P>9.answer 1"+
	"<BR>It's Spanish for [young one]."+
	"<P>10.answer 3"+
	"<BR>Border Collies are too much dog for most people, they need a job! While intelligent, they are not necessarily easy to train- they can out-think many trainers! Although usually black and white, they can be several other colors, such as red and white, tricolor and blue merle."+
	"<P>11.answer 1"+
	"<BR>The water buffalo pulls wagons and loads, gives milk, and is even ridden."+
    "<BR>"

	"<BR>"

	var s2=""

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