

/* 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=	26 // Day
  var month=	3 // Month
  var year=	2012 //Year
  var event=	"ARABLAB 2012"
  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('<strong>' +write+ '</strong> ' +end+ ' <strong>' +event+ '</strong>')
//  document.write('<strong>'+write +'</strong> '+end+' '+event)
//  document.write('<strong>'+write +'</strong>')
}

