/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/


//change the text below to reflect your own,
var before="April 15";
var current="Today is April 15!";
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

function countdown(yr,m,d){
	var today=new Date();
	var todayy=today.getYear();
	if (todayy < 1000) todayy+=1900;
	var todaym=today.getMonth();
	var todayd=today.getDate();
	var todaystring=montharray[todaym]+" "+todayd+", "+todayy;
	var futurestring=montharray[m-1]+" "+d+", "+yr;
	var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1);
	if (difference==0) document.write(current);
	else if (difference>0) document.write(""+difference+" days until "+before);
}

var day0 = 15;
var mo0 = 4;
var countyear;

var now=new Date();
var nowy=now.getYear();
if (nowy < 1000) nowy+=1900;
var nowm=now.getMonth();
var nowd=now.getDate();

if(nowm > (mo0-1)) countyear = nowy + 1;
else if (nowm < (mo0-1)) countyear = nowy;
else
{
	if(nowd <= day0) countyear = nowy;
	else countyear = nowy + 1;
}

//enter the count down date using the format year/month/day
countdown(countyear,mo0,day0);
