var strYear = new Array();
var strMonth = new Array();
var strDate = new Array();

function writeTable1(max) {

  var htmlText="";
  htmlText += "<html><head>"
  htmlText += "<title>J.G.'s JavaScript Sun Table Calculator</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=150 border=1 cellpadding=1 cellspacing=0 bordercolor=#CCCCCC>"

  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=3>"
  htmlText += "<FONT COLOR=red size=+1><P ALIGN=center>" + "JavaScript Easter Table</FONT>"
  htmlText += "</TD>"
  htmlText += "</TR>"
  htmlText += "<TR>"

  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=3>"
  htmlText += "<P ALIGN=center>" + "© J.Giesen"
  htmlText += "</TD>"
  htmlText += "</TR>"

  htmlText += "<TR>"
  htmlText += "<TD COLSPAN=3>"
  htmlText += "<P ALIGN=center>" + "http://www.GeoAstro.de"
  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 +="Month";
  htmlText += "</TD>"

  htmlText += "<TD bgcolor=#CCCCCC>"
  htmlText +="<P ALIGN=right>"
  htmlText +="Date";
  htmlText += "</TD>"

  htmlText +=  "</TR>"



  for (var i=0; i<=max; i++)
      {

    
      
  htmlText += "<TR>"
  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"

  htmlText +=strYear[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText +=strMonth[i];
  htmlText += "</TD>"

  htmlText += "<TD>"
  htmlText +="<P ALIGN=right>"
  htmlText +=strDate[i];
  htmlText += "</TD>"
 

  htmlText +=  "</TR>"
            
  }

  htmlText += "</TABLE>"
  htmlText += "</body></html>"

  document.open();
  document.write(htmlText);
  document.close();
}



