var yearArray = new Array();
var springArray = new Array();
var summerArray = new Array();
var autumnArray = new Array();
var winterArray = new Array();

function writeTable(number) {

  var htmlText="";
  htmlText += "<html><head>"
  htmlText += "<title>Seasons Table</title>"
  htmlText += "</head>"

  htmlText += "<body BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF VLINK=#663399 ALINK=#FF0000>"


  htmlText += "<div align=\"center\"><center>"
  htmlText +="<A HREF='index.htm'>back</A><P>"

  htmlText += "<TABLE width=500 border=1 cellpadding=1 cellspacing=0 bordercolor=#CCCCCC>"

  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=5>"
  htmlText += "<FONT COLOR=red size=+1><P ALIGN=center>" + "Matt O's Seasons Table</FONT>"
  htmlText += "</TD>"
  htmlText += "</TR>"
  htmlText += "<TR>"

  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=5>"
  htmlText += "<P ALIGN=center>" + "Matt Oltersdorf  --  http://users.zoominternet.net/~matto/Java/index.htm"
  htmlText += "</TD>"
  htmlText += "</TR>"

  /*
  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=5>"
  htmlText += "<P ALIGN=center>" + "http://users.zoominternet.net/~matto/Java/index.htm"
  htmlText += "</TD>"
  htmlText += "</TR>"
  */
  
  htmlText += "<TR>"
  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Year";
  htmlText += "</TD>"

  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Spring / UT";
  htmlText += "</TD>"

  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Summer / UT";
  htmlText += "</TD>"

  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Autumn / UT";
  htmlText += "</TD>"

  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Winter / UT";
  htmlText += "</TD>"

  htmlText +=  "</TR>"



  for (var i=0; i<=number; i++)
      {

    
      
  htmlText += "<TR>"
  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"

  htmlText += yearArray[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText += springArray[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText += summerArray[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText += autumnArray[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText += winterArray[i];
  htmlText += "</TD>" 

  htmlText +=  "</TR>"
            
  }

  htmlText += "</TABLE>"
  htmlText += "</body></html>"

  document.open();
  document.write(htmlText);
  document.close();
}


