var dueDate = new Date("November 21, 2009"); // year, month (0 indexed), day
//var dueDate = new Date(2009, 11, 21); // other possibility

var today = new Date();
var str, days = Math.floor((dueDate.getTime()-today.getTime())/86400000);

if (days > 7)
 str = "There are now " + (days) + " days to go, until the server fees are due again.";
else if (days == 7)
 str = "There are now <font color='red'>only " + (days) + " days <font color='white'>to go, until the server fees are due again.";
else if (days == 6)
 str = "<font color='red'>There are now only " + (days) + " days <font color='white'>to go, until the server fees are due again.";
else if (days == 5)
 str = "<font color='red'>There are now only " + (days) + " days to go, <font color='white'>until the server fees are due again.";
else if (days == 4)
 str = "<font color='red'>There are now only " + (days) + " days to go, until the <font color='white'>server fees are due again.";
else if (days == 3)
 str = "<font color='red'>There are now only " + (days) + " days to go, until the server fees <font color='white'>are due again.";
else if (days == 2)
 str = "<font color='red'>There are now only " + (days) + " days to go, until the server fees are due again.<font color='white'>";
else if (days == 1)
 str = "<font color='red'>Tomorrow is the last day to pay the server fees<font color='white'>";
else if (days == 0)
 str = "<font color='red'>Today is the last day to pay the server fees<font color='white'>";
else if (days == -1)
 str = "<font color='red'>If you haven't paid your share of the server fees yet then you need to do it NOW!<font color='white'>";
else
 str = "All server fees should have been paid " + ((days+1)*-1) + (days < -2 ? " days" : " day") + " ago.<font color='white'>";

document.write("<center>"+str+"</center>");