// JavaScript Document
var theDay = new Date("sep 16, 2010")
var theDay2 = new Date("nov 20, 2010")//The day has to be in the format Month Day, Year
var DayTill //The string that is going to put all numbers together and make sense.
var DayTill2 
function countdown()
{
var today = new Date()    //Create an Date Object that contains today's date.
var second = Math.floor((theDay.getTime() - today.getTime())/1000)
var second2 = Math.floor((theDay2.getTime() - today.getTime())/1000)
var minute = Math.floor(second/60)  //Devide "second" into 60 to get the minute
var minute2 = Math.floor(second2/60)  //Devide "second" into 60 to get the minute
var hour = Math.floor(minute/60)  //Devide "minute" into 60 to get the hour
var hour2 = Math.floor(minute2/60)  //Devide "minute" into 60 to get the hour
var day = Math.floor(hour/24)   //Devide "hour" into 60 to get the day
var day2 = Math.floor(hour2/24)   //Devide "hour" into 60 to get the day
CDay= day     //Correct day
CDay2= day2     //Correct day
CHour= hour % 24    //Correct hour, after devide into 24, the remainder deposits here.
CHour2= hour2 % 24
CMinute= minute % 60    //Correct minute, after devide into 60, the remainder deposits here.
CMinute2= minute2 % 60
CSecond= second % 60    //Correct second, after devide into 60, the remainder deposits here.
CSecond2= second2 % 60
//DayTill =  CDay + " dias, " + (CHour-1) + " horas, " + CMinute + " minutos and " + CSecond + " segundos "
DayTill =  CDay + " /    " + (CHour-1) + "  /   " + CMinute + "   /  " + CSecond + ""
DayTill2 =  CDay2 + " /    " + (CHour2) + "  /   " + CMinute2 + "   /  " + CSecond2 + ""
//Rewrite the string to the correct information.
document.clock.countdown.value = DayTill
document.clock.countdown2.value = DayTill2 //Make the particular form chart become "Daytill"
var counter = setTimeout("countdown()", 1000)


}
//-->
