//Enter the date for your countdown. Month first then day.
    var year=2010;
    var month=11;
    var day=25;

//Enter your message - change words below to suit

    var beforedayText="until Thanksgiving!";
    var ondaytext="Happy Thanksgiving!!!" ;
  
//Nothing to edit below unless you want the message to repeat each year
var today=new Date() ;
var countdown=new Date(year, month, day) ;


var monthtext=new Array("Jan","Feb","Mar","April","May","June","July","Aug","Sep","Oct","Nov","Dec") ;
countdown.setMonth(countdown.getMonth()-1) ;
//change to 0-11 month format
var showdate="("+monthtext[countdown.getMonth()]+" "+countdown.getDate()+")";
var one_day=1000*60*60*24 ;
var calculatediff="" ;
calculatediff=Math.ceil((countdown.getTime()-today.getTime())/(one_day)) ;
if (calculatediff >= 0) { //if allowing message to cycle each year change >= to < 
    /*{ uncomment this section if allowing message to continue each year
      var nextyeartoday=new Date() ;
      nextyeartoday.setFullYear(today.getFullYear()+1) ;
      calculatediff=Math.ceil((nextyeartoday.getTime()-today.getTime())/(one_day)+calculatediff) ;
    }*/
    var pluraldayornot=(calculatediff==1)? "day" : "days" ;
    if (calculatediff>0) document.write("<p>It's only <b>"+calculatediff+" "+pluraldayornot+" "+beforedayText+"</b></p>") ;
    else if (calculatediff==0) document.write("<p><b>"+ondaytext+""+showdate+"!</b></p>") ;
};
