/* This script and many more are available free online at

The JavaScript Source :: http://javascript.internet.com

Created by: Robin Jones :: http://www.robinjones1.freeuk.com/ */



function daysTill() {

  //----------  EDIT THE VARIABLES BELOW  ------------------

  // EDIT THE VARIABLES BELOW
  var day=	30 // Day
  var month=	9 // Month
  var year=	2010 //Year
  var event=	""
  var end = 	"    Days Left"

  //----------  END OF EDIT  -------------------------------

  var daystocount=new Date(year, month -1, day)
  today=new Date()
  if (today.getMonth()==month && today.getDate()>day)
  daystocount.setFullYear(daystocount.getFullYear())
  var oneday=1000*60*60*24
  var write = (Math.ceil((daystocount.getTime()-today.getTime())/(oneday)))
  document.write('<strong><font color="#f8b71e" face="Georgia" size="+5">'+write +'</font></strong> <strong><font color="#ffffff" face="Georgia" size="+2">'+end+'</font></strong> '+event)

}

