function grade()
	{

	 var gogtta=0
	 var cccl
	 var cccb

//	 if (j1==1)
	 if (document.quizform.q1.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q2.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q3.selectedIndex==4)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q4.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q5.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q6.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q7.selectedIndex==3)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q8.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q9.selectedIndex==2)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q10.selectedIndex==1)
		{  gogtta=gogtta+1;  }
	 if (document.quizform.q11.selectedIndex==4)
		{  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 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 Horse for a Pet!"  }
	else
		{  cccb="still no comment"  }

	var s1 = "<HTML>"+
	"<title>Pets and Domestic Animals Quiz 2</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 2</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 3"+
	"<BR>Great Danes are known as the [Apollo of Dogs] because of their majestic stature and well-defined muscling. Despite their size, Danes are laid-back, friendly dogs who can do well in a city or suburban home."+
	"<P>2.answer 1"+
	"<BR>Because a rat's tail is bare, it lacks insulation and loses heat. When a rat is hot, more blood flows to the tail to help it lose heat. When a rat is cold, less blood flows to the tail, conserving heat."+
	"<P>3.answer 4"+
	"<BR>As with the Great Dane, the Wolfhound is a gentle giant."+
	"<P>4.answer 1"+
	"<BR>Caligula was a real whacko. Among other things, he was noted for making his horse part of his ruling party. Incitatus, a racehorse, lived in a stable of carved ivory and wore collars with precious gems."+
	"<P>5.answer 2"+
	"<BR>The Labrador is a very active and intelligent dog. Bred to tolerate cold water and rough brush, he easily handles the antics of children."+
	"<P>6.answer 1"+
	"<BR>Cows have 4, goats have 2."+
	"<P>7.answer 3"+
	"<BR>Among a generally high-strung and barky group, the Pug is noted for his calm demeanor."+
	"<P>8.answer 2"+
	"<BR>Originally used as farm workers, now Clydesdales are owned for a number of reasons. They are used for anything from pulling wagons in parades to being a pleasure horse."+
	"<P>9.answer 2"+
	"<BR>Today's Bulldogs almost always must be delivered by Caesarian section because their heads are so large. They have many heart, joint, breathing and eye difficulties."+
	"<P>10.answer 1"+
	"<BR>Forelock means the lock of hair that is on the forehead, makes sense, doesn't it?"+
	"<P>11.answer 4"+
	"<BR>Litters of 22 and up are not unheard of for a pig."+
    "<BR>"

	"<BR>"

	var s2=""

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