var today = new Date;
var Future0 = new Date;
ThisYear = 2005;

var FutureMonth = 2;
var FutureDate = 23;
var faraevent = "the M2M Expo and Conference";

Future0.setMonth(FutureMonth, FutureDate);
Future0.setFullYear(ThisYear);

today1 = Date.parse(today);
future1 = Date.parse(Future0);
secleft = future1 - today1;
miliday = 24 * 60 * 60 * 1000;
daysleft = secleft/miliday;
daysleftint = Math.round(daysleft);

if (daysleftint > 1)
document.write("<h3>Only ", daysleftint, " days left! <span class='red'><a href='content/register.asp'>Register Now!</a></span></h3>");
else if (daysleftint == 1)
document.write("<h3>", faraevent, " starts tomorrow! </h3>");
else if (today1 == future1)
document.write("<h3>",faraevent, " starts today! </h3>");