    /**
     * @projectDescription Countdown timer.  Input the future date and timer
     * will countdown to that chosen time.
     * @author Matthew Brandt
     * @author Freecog.com
     * @version 1.7.08
     */
	

    /**
     * dateFuture = new Date(year,month-1,day,hour,min,sec)
     * The month 0=January, 11=December
     * The hour is in 24 hour format.
     */ 
    var dateFuture = new Date(2008,04,23,08,15,00);
	var message = "Now!";

    /**
     * To test: uncomment the line below to print out "dateFuture" 
     */
    // document.write(dateFuture +"<br />");

    /**
     * 
     * @return The time till event (datafuture).
     */
    function GetCount(){
        // Get current date
        dateNow = new Date();
	    // Calculate milliseconds between dates
	    amount = dateFuture.getTime() - dateNow.getTime();		
	    delete dateNow;

	    // past datefuture
	    if(amount < 0){
		    document.getElementById('countbox').innerHTML= message;
	    }
	    // datafuture is still good
	    else{
		    days=0;hours=0;mins=0;secs=0;out="";
            // Convert milliseconds so just seconds
		    amount = Math.floor(amount/1000);
            // Days
		    days=Math.floor(amount/86400);
		    amount=amount%86400;

            // Hours
		    hours=Math.floor(amount/3600);
		    amount=amount%3600;
            // Minutes
		    mins=Math.floor(amount/60);
		    amount=amount%60;
            // Seconds
		    secs=Math.floor(amount);

		    if(days != 0) {
				out += days +" days, ";
			}
		    if(days != 0 || hours != 0) {
				out += hours +" hours, ";
			}
		    if(days != 0 || hours != 0 || mins != 0) {
				out += mins +" minutes, ";
			}
		    out += secs +" seconds";
		    document.getElementById('countbox').innerHTML=out;

		    setTimeout("GetCount()", 1000);
	    }
    }