


function item(name, perc)
{
        this.name = name;
        this.perc = perc;
}

stargate = new item(8);

stargate[0] = new item('Jack O\'Neill', 0);
stargate[1] = new item('Daniel Jackson', 0);
stargate[2] = new item('Samantha Carter', 0);
stargate[3] = new item('Teal\'c', 0);
stargate[4] = new item('General Hammond', 0);
stargate[5] = new item('Thor', 0);
stargate[6] = new item('A Goa\'uld', 0);
stargate[7] = new item('Dr. Frasier', 0);

function update()
{
		
      for (var n = 0; n < 8; n++)
		stargate[n].perc = 0;
			
	// Are you a take charge person?
	if (document.fm.jack0[0].checked)
	{
		stargate[0].perc = stargate[0].perc + 0;
	}
	if (document.fm.jack0[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 2;
	}
	if (document.fm.jack0[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
	}
	if (document.fm.jack0[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 7;
	}		
	if (document.fm.jack0[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
	}
	
	// Are you good at delegating?
	if (document.fm.jack1[0].checked)
	{
		stargate[0].perc = stargate[0].perc + 0;
		stargate[4].perc = stargate[4].perc + 0;
	}
	if (document.fm.jack1[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 2;
		stargate[4].perc = stargate[4].perc + 5;
	}
	if (document.fm.jack1[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
		stargate[4].perc = stargate[4].perc + 10;
	}
	if (document.fm.jack1[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 7;
		stargate[4].perc = stargate[4].perc + 15;
	}		
	if (document.fm.jack1[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
		stargate[4].perc = stargate[4].perc + 20;
	}

	// are you good at science?
	if (document.fm.jack2[0].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
		stargate[1].perc = stargate[1].perc + 0;
		stargate[2].perc = stargate[2].perc + 0;
		stargate[7].perc = stargate[7].perc + 0;
	}
	if (document.fm.jack2[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 7;
		stargate[1].perc = stargate[1].perc + 2;
		stargate[2].perc = stargate[2].perc + 5;
		stargate[7].perc = stargate[7].perc + 5;
	}
	if (document.fm.jack2[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
		stargate[1].perc = stargate[1].perc + 5;
		stargate[2].perc = stargate[2].perc + 10;
		stargate[7].perc = stargate[7].perc + 10;
	}
	if (document.fm.jack2[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 2;
		stargate[1].perc = stargate[1].perc + 7;
		stargate[2].perc = stargate[2].perc + 15;
		stargate[7].perc = stargate[7].perc + 15;
	}		
	if (document.fm.jack2[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 0;
		stargate[1].perc = stargate[1].perc + 10;
		stargate[2].perc = stargate[2].perc + 20;
		stargate[7].perc = stargate[7].perc + 20;
	}
	
	// Do you watch the Simpsons?
	if (document.fm.jack3[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 2;
		
	}
	if (document.fm.jack3[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
		
	}
	if (document.fm.jack3[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 7;
		
	}		
	if (document.fm.jack3[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
		
	}
	
	// Do you make jokes when under pressure?
	if (document.fm.jack4[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 2;
	
	}
	if (document.fm.jack4[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
			
	}
	if (document.fm.jack4[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 7;
	
	}		
	if (document.fm.jack4[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
	
	}
	
	// Do people find you sarcastic?
	if (document.fm.jack5[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
	
	}
	if (document.fm.jack5[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
			
	}
	if (document.fm.jack5[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 15;
	
	}		
	if (document.fm.jack5[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 20;
	
	}
	
	// Do you love dogs?
	if (document.fm.jack6[1].checked)
	{
		stargate[0].perc = stargate[0].perc + 5;
	
	}
	if (document.fm.jack6[2].checked)
	{
		stargate[0].perc = stargate[0].perc + 10;
			
	}
	if (document.fm.jack6[3].checked)
	{
		stargate[0].perc = stargate[0].perc + 15;
	
	}		
	if (document.fm.jack6[4].checked)
	{
		stargate[0].perc = stargate[0].perc + 20;
	
	}
	
	// Do you know how to speak many languages?
	if (document.fm.daniel0[0].checked)
	{
		stargate[1].perc = stargate[1].perc + 0;

		
	}
	if (document.fm.daniel0[1].checked)
	{
		stargate[1].perc = stargate[1].perc + 2;
	
		
	}
	if (document.fm.daniel0[2].checked)
	{
		stargate[1].perc = stargate[1].perc + 5;
	
	}
	if (document.fm.daniel0[3].checked)
	{
		stargate[1].perc = stargate[1].perc + 7;
	
	}		
	if (document.fm.daniel0[4].checked)
	{
		stargate[1].perc = stargate[1].perc + 10;

	}
	
	// Do you enjoy experiencing different cultures?
	if (document.fm.daniel1[1].checked)
	{
		stargate[1].perc = stargate[1].perc + 2;	
	}
	if (document.fm.daniel1[2].checked)
	{
		stargate[1].perc = stargate[1].perc + 5;	
	}
	if (document.fm.daniel1[3].checked)
	{
		stargate[1].perc = stargate[1].perc + 7;	
	}		
	if (document.fm.daniel1[4].checked)
	{
		stargate[1].perc = stargate[1].perc + 10;	
	}
	
	// Are you often argumentative?
	if (document.fm.daniel2[1].checked)
	{
		stargate[1].perc = stargate[1].perc + 2;	
	}
	if (document.fm.daniel2[2].checked)
	{
		stargate[1].perc = stargate[1].perc + 5;	
	}
	if (document.fm.daniel2[3].checked)
	{
		stargate[1].perc = stargate[1].perc + 7;	
	}		
	if (document.fm.daniel2[4].checked)
	{
		stargate[1].perc = stargate[1].perc + 10;	
	}
	
	// Do others consider you to be nerdy?
	for (n = 0; n < 5; n++)
	{	
		if (document.fm.daniel3[n].checked)
		{
			stargate[1].perc = stargate[1].perc + (n*5);
		}
	}
	
	// Do you talk too much?
	for (n = 0; n < 5; n++)
	{	
		if (document.fm.daniel4[n].checked)
		{
			stargate[1].perc = stargate[1].perc + Math.round(n*2.5);
			stargate[3].perc = stargate[3].perc + 10 - Math.round(n*2.5);
		}
	}
	
	// Do you stick up for others?
	for (n = 0; n < 5; n++)
	{	
		if (document.fm.daniel5[n].checked)
		{
			stargate[1].perc = stargate[1].perc + Math.round(n*2.5);
		}
	}

	
	// Do you follow orders well?
	if (document.fm.sam0[1].checked)
	{
		stargate[2].perc = stargate[2].perc + 2;
		stargate[3].perc = stargate[3].perc + 2;	
	}
	if (document.fm.sam0[2].checked)
	{
		stargate[2].perc = stargate[2].perc + 5;	
		stargate[3].perc = stargate[3].perc + 5;
	}
	if (document.fm.sam0[3].checked)
	{
		stargate[2].perc = stargate[2].perc + 7;	
		stargate[3].perc = stargate[3].perc + 7;
	}		
	if (document.fm.sam0[4].checked)
	{
		stargate[2].perc = stargate[2].perc + 10;	
		stargate[3].perc = stargate[3].perc + 10;
	}
	
	// Are you good with electronics?
	if (document.fm.sam1[1].checked)
	{
		stargate[2].perc = stargate[2].perc + 5;	
	}
	if (document.fm.sam1[2].checked)
	{
		stargate[2].perc = stargate[2].perc + 10;	
	}
	if (document.fm.sam1[3].checked)
	{
		stargate[2].perc = stargate[2].perc + 15;	
	}		
	if (document.fm.sam1[4].checked)
	{
		stargate[2].perc = stargate[2].perc + 20;	
	}
	
	// Do you enjoy a challenge?
	if (document.fm.sam2[1].checked)
	{
		stargate[2].perc = stargate[2].perc + 2;	
	}
	if (document.fm.sam2[2].checked)
	{
		stargate[2].perc = stargate[2].perc + 5;	
	}
	if (document.fm.sam2[3].checked)
	{
		stargate[2].perc = stargate[2].perc + 7;	
	}		
	if (document.fm.sam2[4].checked)
	{
		stargate[2].perc = stargate[2].perc + 10;	
	}
	
	// Do your friends consider you a genius?
	if (document.fm.sam3[1].checked)
	{
		stargate[2].perc = stargate[2].perc + 5;	
	}
	if (document.fm.sam3[2].checked)
	{
		stargate[2].perc = stargate[2].perc + 10;	
	}
	if (document.fm.sam3[3].checked)
	{
		stargate[2].perc = stargate[2].perc + 15;	
	}		
	if (document.fm.sam3[4].checked)
	{
		stargate[2].perc = stargate[2].perc + 20;	
	}
	
	// are you good at repairing things?
	if (document.fm.sam4[1].checked)
	{
		stargate[2].perc = stargate[2].perc + 5;	
	}
	if (document.fm.sam4[2].checked)
	{
		stargate[2].perc = stargate[2].perc + 10;	
	}
	if (document.fm.sam4[3].checked)
	{
		stargate[2].perc = stargate[2].perc + 15;	
	}		
	if (document.fm.sam4[4].checked)
	{
		stargate[2].perc = stargate[2].perc + 20;	
	}
	
	// Do you meditate regularly?
	if (document.fm.tealc0[1].checked)
	{
		stargate[3].perc = stargate[3].perc + 5;
		
	}
	if (document.fm.tealc0[2].checked)
	{
		stargate[3].perc = stargate[3].perc + 10;
	
	}
	if (document.fm.tealc0[3].checked)
	{
		stargate[3].perc = stargate[3].perc + 15;	
	
	}		
	if (document.fm.tealc0[4].checked)
	{
		stargate[3].perc = stargate[3].perc + 20;	
	
	}
	
	// Are you serious most of the time?
	if (document.fm.tealc1[1].checked)
	{
		stargate[3].perc = stargate[3].perc + 5;	
	
	}
	if (document.fm.tealc1[2].checked)
	{
		stargate[3].perc = stargate[3].perc + 10;	

	}
	if (document.fm.tealc1[3].checked)
	{
		stargate[3].perc = stargate[3].perc + 15;	
	
	}		
	if (document.fm.tealc1[4].checked)
	{
		stargate[3].perc = stargate[3].perc + 20;	
	
	}
	
	// Do you seem to lack a sense of humor to others?
	if (document.fm.tealc2[1].checked)
	{
		stargate[3].perc = stargate[3].perc + 2;	
	}
	if (document.fm.tealc2[2].checked)
	{
		stargate[3].perc = stargate[3].perc + 5;	
	}
	if (document.fm.tealc2[3].checked)
	{
		stargate[3].perc = stargate[3].perc + 7;	
	}		
	if (document.fm.tealc2[4].checked)
	{
		stargate[3].perc = stargate[3].perc + 10;	
	}
	
	// Are you incredibly strong phycically?
	if (document.fm.tealc3[1].checked)
	{
		stargate[3].perc = stargate[3].perc + 2;	
	}
	if (document.fm.tealc3[2].checked)
	{
		stargate[3].perc = stargate[3].perc + 5;	
	}
	if (document.fm.tealc3[3].checked)
	{
		stargate[3].perc = stargate[3].perc + 7;	
	}		
	if (document.fm.tealc3[4].checked)
	{
		stargate[3].perc = stargate[3].perc + 10;	
	}
	
	// Are you good at hand-to-hand combat?
	if (document.fm.tealc4[1].checked)
	{
		stargate[3].perc = stargate[3].perc + 5;	
		stargate[0].perc = stargate[0].perc + 2;
	}
	if (document.fm.tealc4[2].checked)
	{
		stargate[3].perc = stargate[3].perc + 10;
		stargate[0].perc = stargate[0].perc + 5;	
	}
	if (document.fm.tealc4[3].checked)
	{
		stargate[3].perc = stargate[3].perc + 15;
		stargate[0].perc = stargate[0].perc + 7;	
	}		
	if (document.fm.tealc4[4].checked)
	{
		stargate[3].perc = stargate[3].perc + 20;
		stargate[0].perc = stargate[0].perc + 10;	
	}
	
	// Do you have alot of authority over others?
	if (document.fm.hammond0[1].checked)
	{
		stargate[4].perc = stargate[4].perc + 5;
		
	}
	if (document.fm.hammond0[2].checked)
	{
		stargate[4].perc = stargate[4].perc + 10;	
	
	}
	if (document.fm.hammond0[3].checked)
	{
		stargate[4].perc = stargate[4].perc + 15;
		
	}		
	if (document.fm.hammond0[4].checked)
	{
		stargate[4].perc = stargate[4].perc + 20;	
	
	}
	
	// Do you often take responsibility for the actions of others?
	if (document.fm.hammond1[1].checked)
	{
		stargate[4].perc = stargate[4].perc + 5;	
	}
	if (document.fm.hammond1[2].checked)
	{
		stargate[4].perc = stargate[4].perc + 10;	
	}
	if (document.fm.hammond1[3].checked)
	{
		stargate[4].perc = stargate[4].perc + 15;	
	}		
	if (document.fm.hammond1[4].checked)
	{
		stargate[4].perc = stargate[4].perc + 20;	
	}
	
	// Do you have a soft, caring side that you hide from co-workers?
	if (document.fm.hammond2[1].checked)
	{
		stargate[4].perc = stargate[4].perc + 5;	
	}
	if (document.fm.hammond2[2].checked)
	{
		stargate[4].perc = stargate[4].perc + 10;	
	}
	if (document.fm.hammond2[3].checked)
	{
		stargate[4].perc = stargate[4].perc + 15;	
	}		
	if (document.fm.hammond2[4].checked)
	{
		stargate[4].perc = stargate[4].perc + 20;	
	}
	
	// Are you a grandparent?

	if (document.fm.hammond3[1].checked)
	{
		stargate[4].perc = stargate[4].perc + 5;	
	}
	if (document.fm.hammond3[2].checked)
	{
		stargate[4].perc = stargate[4].perc + 10;	
	}
	if (document.fm.hammond3[3].checked)
	{
		stargate[4].perc = stargate[4].perc + 15;	
	}		
	if (document.fm.hammond3[4].checked)
	{
		stargate[4].perc = stargate[4].perc + 20;	
	}
	
	// Do you have an alter ego? (Ex: Superman/Clark Kent)
	for (n = 0; n < 5; n++)
	{
		if (document.fm.thor0[n].checked)
		{
			stargate[5].perc = stargate[5].perc + (n*5);	
		}
	}
	
	// Are you soft spoken?
	if (document.fm.thor1[1].checked)
	{
		stargate[5].perc = stargate[5].perc + 2;	
	}
	if (document.fm.thor1[2].checked)
	{
		stargate[5].perc = stargate[5].perc + 5;	
	}
	if (document.fm.thor1[3].checked)
	{
		stargate[5].perc = stargate[5].perc + 7;	
	}		
	if (document.fm.thor1[4].checked)
	{
		stargate[5].perc = stargate[5].perc + 10;	
	}
	
	// Are you ahead of your peers in technoloy?
	if (document.fm.thor2[0].checked)
	{
		stargate[5].perc = stargate[5].perc + 0;
		
	}
	if (document.fm.thor2[1].checked)
	{
		stargate[5].perc = stargate[5].perc + 2;
		
	}
	if (document.fm.thor2[2].checked)
	{
		stargate[5].perc = stargate[5].perc + 5;
		
	}
	if (document.fm.thor2[3].checked)
	{
		stargate[5].perc = stargate[5].perc + 7;
		
	}		
	if (document.fm.thor2[4].checked)
	{
		stargate[5].perc = stargate[5].perc + 10;
	
	}
	
	// Are you kind to others?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.thor3[n].checked)
		{
			stargate[5].perc = stargate[5].perc + (n*5);
			stargate[1].perc = stargate[1].perc + (n*5);
			stargate[7].perc = stargate[7].perc + (n*5);
			stargate[6].perc = stargate[6].perc + 20 - (n*5);	
		}
	}
	
	// Do people sometimes find you condescending?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.thor4[n].checked)
		{
			stargate[5].perc = stargate[5].perc + (n*5);	
		}
	}
	
	// Do you try to protect others from unseen danger?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.thor5[n].checked)
		{
			stargate[5].perc = stargate[5].perc + (n*5);	
		}
	}
	
	// Do you think you are superior to others?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.goauld0[n].checked)
			stargate[6].perc = stargate[6].perc + (n*5);
	}
	
	// Do others say you are over dramatic?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.goauld1[n].checked)
		{	
			stargate[6].perc = stargate[6].perc + Math.round(n*2.5);
		}
	}
	
	// Do you use your authority or power in a harsh way?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.goauld2[n].checked)
			stargate[6].perc = stargate[6].perc + Math.round(n*2.5);
	}
	
	// Do you like to dress in showy, flashy attire?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.goauld3[n].checked)
			stargate[6].perc = stargate[6].perc + (n*5);
	}
	
	// Do you enjoy tormenting others?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.goauld4[n].checked)
			stargate[6].perc = stargate[6].perc + (n*5);
	}
	
	// Are you in the medical field?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.frasier0[n].checked)
			stargate[7].perc = stargate[7].perc + (n*5);
	}
	
	// Do you advise others about health?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.frasier1[n].checked)
			stargate[7].perc = stargate[7].perc + (n*5);
	}
	
	// Have you adopted a child?
	for (n = 0; n < 5; n++)
	{
		if (document.fm.frasier2[n].checked)
			stargate[7].perc = stargate[7].perc + (n*5);
	}
	
	
	// The stuff below this line is for testing
	// to display the scores while answering:
	
	//document.fm.jack.value = stargate[0].perc;
	//document.fm.daniel.value = stargate[1].perc;
	//document.fm.sam.value = stargate[2].perc;
	//document.fm.tealc.value = stargate[3].perc;
	//document.fm.hammond.value = stargate[4].perc;
	//document.fm.thor.value = stargate[5].perc;
	//document.fm.goauld.value = stargate[6].perc;
	//document.fm.frasier.value = stargate[7].perc;
	
}  // end function update





function copyForm()
{
	parent.location = 'result2.htm?a='+stargate[0].perc+
		'&b='+stargate[1].perc+
		'&c='+stargate[2].perc+
		'&d='+stargate[3].perc+
		'&e='+stargate[4].perc+
		'&f='+stargate[5].perc+
		'&g='+stargate[6].perc+
		'&h='+stargate[7].perc;
		
} // end copyForm()

var n = 0;

document.write('<TABLE><TR ALIGN="right"><TD>');
	
document.write('<FORM NAME="fm">');

//document.write('<TABLE><TR ALIGN="right"><TD>');
//document.write('<BR>Jack <INPUT TYPE=TEXT NAME="jack" VALUE="0" SIZE="5">');
//document.write('<BR>Daniel <INPUT TYPE=TEXT NAME="daniel" VALUE="0" SIZE="5">');
//document.write('<BR>Sam <INPUT TYPE=TEXT NAME="sam" VALUE="0" SIZE="5">');
//document.write('<TD>');
//document.write('<BR>Teal\'c <INPUT TYPE=TEXT NAME="tealc" VALUE="0" SIZE="5">');
//document.write('<BR>Hammond <INPUT TYPE=TEXT NAME="hammond" VALUE="0" SIZE="5">');
//document.write('<BR>Thor <INPUT TYPE=TEXT NAME="thor" VALUE="0" SIZE="5">');
//document.write('<TD>');
//document.write('<BR>Goa\'uld <INPUT TYPE=TEXT NAME="goauld" VALUE="0" SIZE="5">');
//document.write('<BR>Frasier <INPUT TYPE=TEXT NAME="frasier" VALUE="0" SIZE="5">');
//document.write('</TABLE>');

document.write('<DIV STYLE="background-color: #FFFFFF; overflow: auto; width: 500px; height: 230; border-top: 1px gray solid; border-left: 1px gray solid; border-bottom: 1px gray solid; padding:0px; margin: 0px">');

document.write('<TABLE><COL WIDTH=250><COL WIDTH=200>');
document.write('<TR><TD>Are you a take charge person? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you good at delegating? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you good at science? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you watch \'The Simpsons\'? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you make jokes when under pressure? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do others find you sarcastic? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack5" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you love dogs? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="jack6" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you know how to speak many languages? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you enjoy experiencing different cultures? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you often argumentative? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do others find you nerdy? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you talk alot, perhaps too much? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you stick up for others? <TD>(No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="daniel5" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you follow orders well? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="sam0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you good with electronics? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="sam1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you enjoy challenging tasks? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="sam2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do your friends consider you a genius? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="sam3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you good at repairs? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="sam4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you meditate regularly? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="tealc0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you serious most of the time? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="tealc1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you seem to lack a sense of humor? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="tealc2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you incredibly strong physically? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="tealc3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you good at hand-to-hand combat? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="tealc4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you have alot of authority over others? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="hammond0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you often take responsibility for the actions of others? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="hammond1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you have a soft, caring side that you hide from co-workers? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="hammond2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you a grandparent? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="hammond3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you have an alter ego? (Ex: Superman/Clark Kent) <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you soft spoken? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you ahead of your peers in technology? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Are you kind to others? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do others sometimes find you condescending? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you try to protect others from unseen danger? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="thor5" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you think you are superior to others? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="goauld0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do others say you are over dramatic? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="goauld1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you use power or authority over others in a harsh way? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="goauld2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you like to dress in showy, flashy attire? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="goauld3" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you enjoy tormenting others? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="goauld4" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you work in the medical field? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="frasier0" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Do you advise others about their health? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="frasier1" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('<TR><TD>Have you adopted a child? <TD> (No)');
for (n = 0; n < 5; n++)
{
document.write('<INPUT TYPE="radio" NAME="frasier2" value="'+ n +'" onClick="update()">');
}
document.write('(Yes)</TR>');

document.write('</TABLE>');
document.write('</DIV>');

document.write('<TD VALIGN=bottom ALIGN=left>');
document.write('<FONT SIZE=4><B>&larr;</B> Scroll Down</FONT>');
document.write('<BR><BR><BR<BR><BR><BR><BR><BR><BR><BR>');

document.write('<FONT SIZE=4><B>&larr;</B> Scroll Down</FONT>');
document.write('</TABLE>');
document.write('<TABLE BORDER=0 WIDTH=500px><TR><TD>');
document.write('<INPUT TYPE="reset" NAME="Reset">');

document.write('</TD><TD ALIGN=RIGHT>');
document.write('<INPUT TYPE="button" NAME="Done" VALUE="Done" onClick="copyForm()">');
document.write('</TR></TABLE>');
document.write('</FORM>');

waitMessage();  // make "wait for quiz" message disappear
