var theDay = new Date("May 12, 2011")  //Date must be in the form Month Day, Yearvar DayTill     //The string that is going to put all numbers together and make sense.function countdown(){var today = new Date()    //Create a variable with today's datevar second = Math.floor((theDay.getTime() - today.getTime())/1000)  //Find the secondsvar minute = Math.floor(second/60)  //Divide "second" into 60 to get the minutesvar hour = Math.floor(minute/60)  //Divide "minute" into 60 to get the hoursvar day = Math.floor(hour/24)   //Divide "hour" into 60 to get the daysCDay= day     //Correct dayCHour= hour % 24    //Correct hour, after divide into 24, the remainder deposits here.CMinute= minute % 60    //Correct minute, after devide into 60, the remainder deposits here.CSecond= second % 60    //Correct second, after devide into 60, the remainder deposits here.if (CDay < 0 ) {CDay = "0"; CHour = "0"; CMinute = "0"; CSecond = "0";} //Stop at 0DayTill =  CDay + " days, " + CHour + " hrs, " + CMinute + " mins and " + CSecond + " secs "//Rewrite the string to the correct information.document.clock.countdown.value = DayTill //Make the particular form chart become "Daytill"var counter = setTimeout("countdown()", 1000)}