function funqa3201() {
  var nq = 9;
  var ok=1;
  var si="";
  var jj=0;
  var bb=new Array(9);
  jj=document.qa3201.qa01.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[0]=true;}
  if (jj==2) {bb[0]=false;}
  jj=document.qa3201.qa02.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[1]=true;}
  if (jj==2) {bb[1]=false;}
  jj=document.qa3201.qa03.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[2]=true;}
  if (jj==2) {bb[2]=false;}
  jj=document.qa3201.qa04.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[3]=true;}
  if (jj==2) {bb[3]=false;}
  jj=document.qa3201.qa05.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[4]=true;}
  if (jj==2) {bb[4]=false;}
  jj=document.qa3201.qa06.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[5]=true;}
  if (jj==2) {bb[5]=false;}
  jj=document.qa3201.qa07.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[6]=true;}
  if (jj==2) {bb[6]=false;}
  jj=document.qa3201.qa08.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[7]=true;}
  if (jj==2) {bb[7]=false;}
  jj=document.qa3201.qa09.selectedIndex;
  if (jj==0) {ok=0;}
  if (jj==1) {bb[8]=true;}
  if (jj==2) {bb[8]=false;}
  if (ok==0) {alert("Some responses are missing.\nPlease select TRUE or FALSE\nfor all statements.")}
  else {
    var ok=0;
    var aa=new Array(true,false,false,false,true,false,false,true,false);
    var sx="width=450,height=200,resizable=yes,scrollbars=yes";
    var w = window.open("","qa3201w",sx,replace=true);
    if (aa[0]!=bb[0]) {
      w.document.write('<font size=+2 color="#aa0000">#1 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#1 Correct!<br>');ok++;
    }
    w.document.write("The Sun provides 1.7 x 10<sup>17</sup> Watts of power (Joules of energy each second) in the form of radiation that is intercepted by Earth. Some of this energy is reflected and some is absorbed. ");
    w.document.write("<p>");
    if (aa[1]!=bb[1]) {
      w.document.write('<font size=+2 color="#aa0000">#2 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#2 Correct!<br>');ok++;
    }
    w.document.write("At any instant, energy received and emitted by Earth can be unbalanced. If energy received is greater than emitted, the temperature of Earth will rise. If energy emitted exceeds energy received, then temperatures will fall. Conservation of energy requires that the total energy at all times be the same temporal and spatial imbalances can occur. (Although the buildup of greenhouse gases is shifting the balance.)");
    w.document.write("<p>");
    if (aa[2]!=bb[2]) {
      w.document.write('<font size=+2 color="#aa0000">#3 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#3 Correct!<br>');ok++;
    }
    w.document.write("The opposite is true. Earth's energy balance determines our climate.  Over a sufficiently long time period, incident energy must equal its emitted energy. In case of an imbalance, the temperature of Earth will increase or decrease until the energy flows become equal. Temperature is the primary determinant of our climate.");
    w.document.write("<p>");
    if (aa[3]!=bb[3]) {
      w.document.write('<font size=+2 color="#aa0000">#4 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#4 Correct!<br>');ok++;
    }
    w.document.write("Earth's average temperature has varied significantly over the past several hundred thousand years. Past temperatures can be estimated from various sources of data: for example, tree-ring widths, coral growth and isotope variations in glacier ice cores. Variations in Earth’s motion and orientation may be responsible in large measure for these past climate changes.");
    w.document.write("<p>");
    if (aa[4]!=bb[4]) {
      w.document.write('<font size=+2 color="#aa0000">#5 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#5 Correct!<br>');ok++;
    }
    w.document.write("All objects produce radiation in proportion to the fourth power of their absolute (Kelvin) temperature. The Kelvin (K) temperature is 273.15 + Celsius temperature. At room temperature of 20 degrees Celsius the Kelvin temperature is 293 degrees. Relatively cool objects like the Earth emit radiation, most of which is not visible.  Hotter objects like the Sun with surface temperatures in the range 5,000-6,000 degrees Kelvin radiate much of their energy in the visible radiation range. Our eyes are most sensitive to the emissions of our local star, the Sun.");
    w.document.write("<p>");
    if (aa[5]!=bb[5]) {
      w.document.write('<font size=+2 color="#aa0000">#6 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#6 Correct!<br>');ok++;
    }
    w.document.write("Water vapor is a prominent greenhouse gas that is transparent to much of the Sun’s radiation, but acts as a blanket absorbing some of the infrared radiation emitted by Earth. This blanketing effect warms Earth and makes it more habitable. If the water vapor changes phase (condenses to water droplets or freezes to ice crystals) then clouds will form and these will have both cooling (sun blocking) and warming (blanketing) effects.");
    w.document.write("<p>");
    if (aa[6]!=bb[6]) {
      w.document.write('<font size=+2 color="#aa0000">#7 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#7 Correct!<br>');ok++;
    }
    w.document.write("Earth is closest to the Sun in January and farthest in July. Most of the seasonal changes that we observe throughout a year are due to the tilt of Earth’s axis of rotation. The axis is tilted at 23 degrees to the plane of orbit and points towards Polaris, the North Star. During winter in the United States, the Northern Hemisphere is tilted away from the Sun.  Six months later on the opposite side of Earth's orbit, the Northern Hemisphere tilts towards the Sun and experiences summer.");
    w.document.write("<p>");
    if (aa[7]!=bb[7]) {
      w.document.write('<font size=+2 color="#aa0000">#8 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#8 Correct!<br>');ok++;
    }
    w.document.write("Each species of fish seeks out waters in a temperature range that suits its metabolism, biochemistry and feeding habits. Fishermen can access fishing forecasts based on maps of surface temperature, currents, phytoplankton and other environmental conditions to track down specific fish species. Fish seek out water that has food. For example, warm water is more suitable for tuna, but tuna are often found at the edges of cold eddys because their prey prefer cold water.");
    w.document.write("<p>");
    if (aa[8]!=bb[8]) {
      w.document.write('<font size=+2 color="#aa0000">#9 Wrong!<br>');
    } else {
      w.document.write('<font size=+2 color="#000000">#9 Correct!<br>');ok++;
    }
    w.document.write("Temperature does not affect the color of water. Satellites measure the intensity of invisible radiation emitted by the sea surface to determine sea surface temperature. The data gathered are in black and white. Color tables are created and applied to the data. These colors do not represent the colors as seen by our eyes, but instead represent data values. Recall that the Kelvin temperature of an object determines the energy that it radiates. Inversely, the radiation from an object (the sea surface) may be used to remotely determine its temperature from a satellite.");
    w.document.write("<p>");
    document.qa3201.qscore.value=Math.floor(100.0*ok/nq);
  }
}
