var today = new Date();
var day1 = new Date(2004, 3, 21); //month 3 = April
var day2 = new Date(2004, 3, 26);

var isDone = today.getTime() >= day2.getTime();

//Gets the current index page based on the day
function IndexPage()
{
  if (isDone)
    return "index2.html";
  return "index1.html";
}
function GotoIndexPage()
{
  window.location.href = IndexPage();
}

//Returns the string version of a date
function DateToString(d)
{
  var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  return months[d.getMonth()]+" "+d.getDate()+", "+d.getFullYear();
}

//Prints the string version of a date
function printDate(d)
{
  document.write(DateToString(d));
}
