﻿
//Original:  Alan Palmer
//Web Site:  http://www.jsr.communitech.net

//This script and many more are available free online at 
//The JavaScript Source!! http://javascript.internet.com 

// Begin
var date = new Date("September 6, 2012");
var description = "ZFest Greenville 2012";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<center><H2>")
if (days > 1) {
document.write(days+1 + " days until " + description);
}
else if (days == 1) {
document.write("Only two days until " + description);
}
else if (days == 0) {
document.write("Tomorrow is " + description);
}
else {
document.write("It's" + description + "!");
}
document.write("</h3></center>");
// End -->

