// JavaScript Document
<!--
function quizCheck()
{ 
var answer1="";
var answer2="";
var answer3="";
var answer4="";
var phrase1 = "";
var phrase2 = "";
var phrase3 = "";
var phrase4 = "";
var score = 0;
if (document.test.button1[0].checked == true) 
	{phrase1="Astronomers have been able to see plenty of distant galaxies for decades.<br>";
	answer1=document.test.button1[0].value;}
else
if (document.test.button1[1].checked == true) 
	{phrase1="Correct. Distant galaxies appear to be moving away from us and each other, according to the Doppler shift of the light we measure coming from them.<br>";
	answer1=document.test.button1[1].value;
	score++;}
else
if (document.test.button1[2].checked == true) 
	{phrase1="The cooling of the Universe is too slow to be directly measured now. The cooling is deduced from the expansion rate, which can be measured.<br>";
	answer1=document.test.button1[2].value;}
else {phrase1="You didn't answer Question 1.<br>"}
	
if (document.test.button2[0].checked == true) 
	{phrase2="Correct. Particle physics combined with the Big Bang model predicts the existence of magnetic charge at levels not observed today.<br>";
	answer2=document.test.button2[0].value;
	score++;}
else
if (document.test.button2[1].checked == true) 
	{phrase2="The observed cosmic background radiation temperature fits nicely with the Big Bang model.<br>";
	answer2=document.test.button2[1].value;}
else
if (document.test.button2[2].checked == true) 
	{phrase2="The relative abundance of hydrogen vs. helium is another good prediction of the Big Bang model.<br>";
	answer2=document.test.button2[2].value;}
else {phrase2="You didn't answer Question 2.<br>"}

if (document.test.button3[0].checked == true) 
	{phrase3="The confinement of quaks and gluons had to happen long before hydrogen and helium were formed.<br>";
	answer3=document.test.button3[0].value;}
else
if (document.test.button3[1].checked == true) 
	{phrase3="The decoupling of matter and radiation happened long before the formation of heavy elements.<br>";
	answer3=document.test.button3[1].value;}
else
if (document.test.button3[2].checked == true) 
	{phrase3="Correct. Isn't it amazing that all the chemicals needed for the evolution of life were  formed inside stars by nuclear fusion?<br>";
	answer3=document.test.button3[2].value;
	score++;}
else {phrase3="You didn't answer Question 3.<br>"}

if (document.test.button4[0].checked == true) 
	{phrase4="There are ten spacetime dimensions in superstring theories, so if nine of them stay small, that leaves only one expanding time dimension, and zero expanding space dimensions. Does that sound like our Universe?<br>";
	answer4=document.test.button4[0].value;}
else
if (document.test.button4[1].checked == true) 
	{phrase4="Correct. There are ten spacetime dimensions in superstring theories, so if six of them stay small, that leaves one expanding time dimension, and three expanding space dimensions. That's what we need to be able to describe the Universe observed today.<br>";
	answer4=document.test.button4[1].value;
	score++;}
else
if (document.test.button4[2].checked == true) 
	{phrase4="There are ten spacetime dimensions in superstring theories, so if three of them stay small, that leaves one expanding time dimension, and six expanding space dimensions. Does that sound like our Universe?<br>";
	answer4=document.test.button4[2].value;}
else {phrase4="You didn't answer Question 4.<br>"}

document.open();
document.writeln("<center><table width=450 border=0><tr><td>");
document.writeln("<font color=#000099><center><h3>Quiz results</h3></center>");
document.writeln("Your score is "+score+" out of 4. <br><br>");
document.writeln("<b>Question 1:</b> Why do astronomers and physicists believe the Universe is expanding?");
document.writeln("<br><b>You answered</b>: ");
document.writeln(answer1);
document.writeln("<br><b>Reply:</b> ");
document.writeln(phrase1);
document.writeln("<br><br><b>Question 2:</b> Which observed feature of our visible Universe has not been explained through the Big Bang theory of cosmology?");
document.writeln("<br><b>You answered:</b> ");
document.writeln(answer2);
document.writeln("<br><b>Reply:</b> ");
document.writeln(phrase2);
document.writeln("<br><br><b>Question 3:</b> How were the heavy elements like carbon and iron believed to have been made during the expansion of the Universe?");
document.writeln("<br><b>You answered</b>: ");
document.writeln(answer3);
document.writeln("<br><b>Reply:</b> ");
document.writeln(phrase3);
document.writeln("<br><br><b>Question 4:</b> In superstring theories, how many spacetime dimensions must remain tiny as the visible Universe expands?");
document.writeln("<br><b>You answered:</b> ");
document.writeln(answer4);
document.writeln("<br><b>Reply:</b> ");
document.writeln(phrase4);
document.writeln("<br><br>");
document.writeln('<center><a href="cosquiz.html" target="_self">Take the quiz again</a></center>');
document.writeln("<br><br>");
document.writeln("</font></td></tr></table></center>");
}
document.close();
//-->