/* 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 JoursRestantsLiga3()
 {
  //----------  EDIT THE VARIABLES BELOW  ------------------
  // EDIT THE VARIABLES BELOW
  var day=	2; // Day
  var month=	10; // Month
  var year=	2010; //Year
  var end = 	" Deeg ";
  //----------  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)))
  if (write==1)
	end = " Daag "
  if (write==0)
   {
    document.write('haut')
   }
   else
   {
    document.write('nach '+ write + end)
   }

 }


