

<!-- Paste this code into an external JavaScript file  -->



/* 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=	24 // Day

  var month=	4 // Month

  var year=	2010 //Year

  var event=	"Spring Nationals"

  var end = 	"days left until"

  //----------  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('There are <strong>'+write +'</strong> '+end+' '+event)

}





