<!--

<!--get Date and format to compare to gigDate -->

today = new Date();
year = today.getFullYear();
month = today.getMonth()+1;
day = today.getDate();

year = year * 10000;
month = month * 100;

quantDate = year+month+day;

<!-- open XML file and list gigs that have not occured yet -->

if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else // Internet Explorer 5/6
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET","xml/calendar.xml",false);
xhttp.send("");
xmlCal=xhttp.responseXML;

document.write("<ul>");
var x=xmlCal.getElementsByTagName("gig");
for (i=0;i<x.length;i++)
  {
  gigDate = x[i].getElementsByTagName("logicDate")[0].childNodes[0].nodeValue;
  if(gigDate > quantDate - 3){
  document.write("<li>");
  document.write(x[i].getElementsByTagName("date")[0].childNodes[0].nodeValue);
  document.write("<br>");
  document.write(x[i].getElementsByTagName("venue")[0].childNodes[0].nodeValue);
  document.write("<br><strong>");
  document.write(x[i].getElementsByTagName("location")[0].childNodes[0].nodeValue);
  document.write("</strong></li>");
  }
  }
document.write("</ul>");

-->