function time_to_wetdown()
{
var timer;
var time_to_wetdown;
var current_date = new Date();
var current_month=current_date.getMonth()+1;
var current_day=current_date.getDate();
var current_year=current_date.getFullYear();
var wetdown_date= new Date("06/12/2010 18:00:00");

milliseconds_to_wetdown=wetdown_date.getTime()-current_date.getTime();
days_to_wetdown=Math.floor(milliseconds_to_wetdown/1000/3600/24);
hours_to_wetdown=Math.floor((milliseconds_to_wetdown-days_to_wetdown*1000*3600*24)/1000/3600);
minutes_to_wetdown=Math.floor((milliseconds_to_wetdown-(days_to_wetdown*1000*3600*24)-(hours_to_wetdown*1000*3600))/1000/60);
seconds_to_wetdown=Math.floor((milliseconds_to_wetdown-days_to_wetdown*1000*3600*24-hours_to_wetdown*1000*3600-minutes_to_wetdown*1000*60)/1000);


document.getElementById('time_to_wetdown_output').value=days_to_wetdown+"Days "+hours_to_wetdown+"Hours "+minutes_to_wetdown+"Minutes "+seconds_to_wetdown+"Seconds ";

timer=setTimeout("time_to_wetdown()",1000);
}

