function gradeit(){
var qnum=17;

var qname='Take the Atlanto-Egyptian Quiz...';

var ghtml='';

var right=0;

var wrong=0;

var grade=0;

var gmethod=0;


var qarray=new Array()

qarray[0]='Which of the following is credited with bringing a \'body of knowledge\' preserved on emerald tablets to Egypt?';
qarray[1]='The Dendera zodiac, painted on a New Kingdom roof temple is associated with which constellation parameters?';
qarray[2]='The possibility of Atlantean flood survivors being responsible for the construction The Great Sphinx rests on the following:';
qarray[3]='Medinet Habu, the XX Dynasty Victory Temple, in West Thebes was built by what Pharaoh and for what purpose?';
qarray[4]='The \'Sea People\' were known to 12th-century B.C. Egyptians as...';
qarray[5]='The deity in the wall texts of Medinet Habu responsible for the destruction of the homeland of the \'Sea People\' is:';
qarray[6]='Egyptians transliterated the sunken island of the Sea People as:';
qarray[7]='The diluvian Egyptian \'Goddess of the Watery Abyss\' is:';
qarray[8]='The \'mesentiu\' were:';
qarray[9]='An Egyptian goddess of possible pre-dynastic origin, depicted as a cow surrounded with 19 stars is:';
qarray[10]='The nineteen stars depiction of the patron goddess of prophesy and history named above symbolize:';
qarray[11]='The \'Field of Reeds\' written about in \'The Book of Coming Forth by Day\' is:';
qarray[12]='The culture bearers that arrived from Sekhet-aaru, the \'Field of Reeds\', most likely at the beginning of dynastic Egypt, around late fourth millennium B.C. were called:';
qarray[13]='The Egyptian name for Atlantis is:';
qarray[14]='The Sun deity most likely associated with the Law of One and whose name meant \'Mountain Sun City\' was:';
qarray[15]='The Egyptian myth relating the destruction of Atlantis with Hathor (At-Hr, At-Hor, Aethyr) is the following:';
qarray[16]='The Egyptian god Shu can be associated with Atlantis because his name means:';

var canswerarray=new Array()
canswerarray[0]='3';
canswerarray[1]='1';
canswerarray[2]='2';
canswerarray[3]='1';
canswerarray[4]='1';
canswerarray[5]='0';
canswerarray[6]='1';
canswerarray[7]='1';
canswerarray[8]='3';
canswerarray[9]='3';
canswerarray[10]='0';
canswerarray[11]='3';
canswerarray[12]='3';
canswerarray[13]='3';
canswerarray[14]='2';
canswerarray[15]='3';
canswerarray[16]='2';



var answerarray=new Array()

answerarray[0]=new Array(
'A. Thoth or Tehuti.',
'B. Khenti.',
'C. Hab.',
'D. All of the above.')



answerarray[1]=new Array(
'A. Taurus, on the spring equinox of 846 B.C.',
'B. Leo, on the vernal equinox of 9880 B.C.',
'C. Aries, on the spring equinox of 3000 B.C.',
'D. Leo, on the summer solstice of 10,000 B.C.'
)

answerarray[2]=new Array(
'A. The body of The Sphinx is a lion, which as the constellation Leo, is associated with heavy rainfalls and floods.',
'B. Signs of rain erosions point to possible construction dates of approximately 7000 - 5000 B.C.',
'C. Both A and B. ',
'D. None of the above,'
)

answerarray[3]=new Array(
'A. It was built by Seti-I as a subterranean monument in remembrance to the Great Flood, also known as the \'Osireion\'.',
'B. Its completion around 1180 B.C. by Ramses III commemorated his triumph over the \'Sea People\'.',
'C. Its construction began with the reign of Seti-I and was completed by Ramses III to commemorate Atlantis.',
'D. None of the above.'
)

answerarray[4]=new Array(
'A. Titans.',
'B. Hau-neb.',
'C. Nephilim.',
'D. None of the above.'
)


answerarray[5]=new Array(
'A. Hathor as Sekhmet.',
'B. Neith.',
'C. Nuit,',
'D. Hathor as Isis.'
)


answerarray[6]=new Array(
'A. Ausar.',
'B. Netero.',
'C. Mesentiu.',
'D. Auset.')


answerarray[7]=new Array(
'A. Auset.',
'B. Meh-Urt.',
'C. Anpu.',
'D. None of the above.'
)



answerarray[8]=new Array(
'A. \'The Harpooners\'.',
'B.  Metalsmiths.',
'C.  Atlantean survivors that became culture bearers in pre-dynastic Egypt.',
'D.  All of the above.'
)



answerarray[9]=new Array(
'A.  Tehenut.',
'B.  Neith.',
'C.  Meh-Urt.',
'D.  All of the above.'
)


answerarray[10]=new Array(
'A.  The Atlantises.',
'B.  The Pleides.',
'C.  The Hesperides.',
'D.  The Hyades.'
)


answerarray[11]=new Array(
'A.  The realm of the dead.',
'B.  The Egyptian ancestral island in the Distant West.',
'C.  A land devoted to learning.',
'D.  All of the above.'
)



answerarray[12]=new Array(
'A.  Semu-Hor.',
'B.  The followers of Horus.',
'C.  Mesentiu.',
'D.  Both A and B.'
)


answerarray[13]=new Array(
'A.  Cerne.',
'B.  Etelenty.',
'C.  Neteru.',
'D.  Both B and C.'
)


answerarray[14]=new Array(
'A.  Re.',
'B.  Hathor.',
'C.  Aton.',
'D.  Khepera.'
)


answerarray[15]=new Array(
'A.  The goddess Hathor, in the guise of a fiery comet (Sekhmet), threatens all humanity but the gods release a worldwide deluge to prevent their entire destruction.',
'B.  The goddess Hathor sinks Atlantis in her attempt to rescue it from a flaming planet (Sekhmet).',
'C.  The sun-god commands Hathor to punish mankind but the other gods, fearing human extinction, unleash a worldwide deluge of beer. Hathor becomes drunk and is unable to fulfill her command.',
'D.  All of the above.'
)


answerarray[16]=new Array(
'A.  \'Lord of Heaven\'.',
'B.  Air.',
'C.  \'He who holds up\'.',
'D.  All of the above.'
)




ghtml+='<p align=\"center\"><span class=\"header\">'+qname+'</span></p>';

for(i=0;i<qnum;i++){

	for(a=0;a<4;a++){

		var rbid='rb'+i+'_'+a;
	
	if(document.getElementById(rbid).value=='1'&&document.getElementById(rbid).checked==true){

			ghtml+='<table width=\"100%\"><tr><td style=\"border:1 solid black;background-color:lightyellow\"><span style=\"color:green\"><b>Correct</b></span></td></tr><tr><td style=\"border:1 solid black;background-color:lightyellow\"><b>'+eval(i+1)+'. '+qarray[i]+'</b><p><table width=\"100%\"><tr><td width=\"100%\"><i><span style=\"color:green\">Your Answer</span>:</i> '+answerarray[i][a]+'</td></tr><tr><td width=\"100%\"><i><span style=\"color:green\">Correct Answer</span>:</i> '+answerarray[i][canswerarray[i]]+'</td></tr></table></td></tr></table><p>&nbsp;';

			right++;		}

		if(document.getElementById(rbid).value=='0'&&document.getElementById(rbid).checked==true){
			ghtml+='<table width=\"100%\"><tr><td style=\"border:1 solid black;background-color:lightyellow\"><span style=\"color:red\"><b>InCorrect</b></span></td></tr><tr><td style=\"border:1 solid black;background-color:lightyellow\"><b>'+eval(i+1)+'. '+qarray[i]+'</b><p><table width=\"100%\"><tr><td width=\"100%\"><i><span style=\"color:red\">Your Answer</span>:</i> '+answerarray[i][a]+'</td></tr><td width=\"100%\"><i><span style=\"color:green\">Correct Answer</span>:</i> '+answerarray[i][canswerarray[i]]+'</td></tr></table></td></tr></table><p>&nbsp;';

			wrong++;		}
	}
}
if(gmethod==0){ghtml+='<div align=\"center\"><table width=\"100%\" bgcolor=\"lightyellow\"><tr><td width=\"100%\"><span style=\"font-size:14pt\"><b>Grade</b></span></td></tr><tr><td width=\"100%\"><table width=\"100%\"><tr><td width=\"50%\"><b><u>Correct Answers</u>:</b> '+right+'</td><td width=\"50%\"><b><u>Incorrect Answers</u>:</b> '+wrong+'</td></tr></table></td></tr></table>';}

if(gmethod==1){

	grade=100/qnum;

	right=grade*right;

	wrong=grade*wrong;

	ghtml+='<div align=\"center\"><table width=\"100%\" bgcolor=\"lightyellow\"><tr><td width=\"100%\"><span style=\"font-size:14pt\"><b>Grade</b></span></td></tr><tr><td width=\"100%\"><table width=\"100%\"><tr><td width=\"50%\"><b><u>Correct Answers</u>:</b> '+right+'%</td><td width=\"50%\"><b><u>Incorrect Answers</u>:</b> '+wrong+'%</td></tr></table></td></tr></table>';}



ghtml+='<p align=\"center\"><input type=\"button\" value=\"Reset\" onClick=\"location.reload()\"/>';

document.getElementById('qview').style.display='none';

document.getElementById('gradeview').style.display='inline';
document.getElementById('gradeview').innerHTML=ghtml;

}
