// 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="Correct. Calculus is useful for describing how quantities change, for example, how the position of the moon changes with time.<br>";
	answer1=document.test.button1[0].value;
	score++;}
else
if (document.test.button1[1].checked == true) 
	{phrase1="Great cathedrals were being built in Europe long before Newton was born.<br>";
	answer1=document.test.button1[1].value;}
else
if (document.test.button1[2].checked == true) 
	{phrase1="Newton used the Bible to estimate that the Earth was about 3000 years old. Luckily, he was more skilled at physics and math than he was at history.<br>";
	answer1=document.test.button1[2].value;}
else {phrase1="You didn't answer Question 1.<br>"}
	
if (document.test.button2[0].checked == true) 
	{phrase2="Two bosons can be in the same quantum state at the same time.<br>";
	answer2=document.test.button2[0].value;}
else
if (document.test.button2[1].checked == true) 
	{phrase2="This is theoretically possible for bosons, but not fermions.<br>";
	answer2=document.test.button2[1].value;}
else
if (document.test.button2[2].checked == true) 
	{phrase2="Correct. This is believed to be the quantum explanation for the observed stability of matter. Only fermions can make atoms.<br>";
	answer2=document.test.button2[2].value;
	score++;}
else {phrase2="You didn't answer Question 2.<br>"}

if (document.test.button3[0].checked == true) 
	{phrase3="General relativity has never been on shaky ground, and is doing even better since observations of possible black holes by the Hubble Space Telescope.<br>";
	answer3=document.test.button3[0].value;}
else
if (document.test.button3[1].checked == true) 
	{phrase3="The Standard Model of particle physics has been measured and measured and still comes up smelling like roses.<br>";
	answer3=document.test.button3[1].value;}
else
if (document.test.button3[2].checked == true) 
	{phrase3="Correct. There are very large, perhaps insurmounable, difficulties in combining what works for particles with what works for gravity into one whole working theory. String theory avoids most of those complications.<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="A drum head is like a membrane, not a string. Membranes do exist as string states however, and they can have excitations too.<br>";
	answer4=document.test.button4[0].value;}
else
if (document.test.button4[1].checked == true) 
	{phrase4="Correct. The excitation modes of a quantized string that give rise to elementary particle states are like the vibration modes of a guitar string that give rise to different notes.<br>";
	answer4=document.test.button4[1].value;
	score++;}
else
if (document.test.button4[2].checked == true) 
	{phrase4="Xena and Gabrielle are friends. Strings and particles don't form those kinds of bonds.<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> What did Newton need <b>calculus</b> for?");
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> How many fermions can be in the same quantum state at the same time?");
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> Which statement below reflects the relationship between particle physics and general relativity?");
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 string theory, the relationship between quantum string and elementary particles is like:");
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="basquiz.html" target="_self">Take the quiz again</a></center>');
document.writeln("<br><br>");

document.writeln("</font></td></tr></table></center>");
}
document.close();
//-->