
	setDefaults = function(){
		var ojTable = document.getElementById('headerJoin');
		if(ojTable){
			var oInputs = ojTable.getElementsByTagName('input');
			oInputs[0].value = 'Email Address';
			oInputs[1].value = 'Home Zip';
		}
	}

var Target_Date = (new Date(2010, 11, 31, 23, 0, 00)).getTime();
var Todays_Date = getCurrentMilliseconds();
var Diff_Date;
var Today = new Date();


function countdown(year, month, day, hour, minute){
	countdown()
}

function initCountdown(){
	Diff_Date = Todays_Date - Loaded_Date;
	countdown();
}


function countdown() {
	Todays_Date = getCurrentMilliseconds()
                                          
         //Find their difference, and convert that into seconds.                  
         Time_Left = Math.round((Target_Date - Todays_Date + Diff_Date) / 100);
		 
         if(Time_Left < 0) { Time_Left = 0; }
                  
		daysLeft = Math.floor(Time_Left / (10 * 60 * 60 * 24))

		  Time_Left %= (10 * 60 * 60 * 24 );
                  hours = Math.floor(Time_Left / (10 * 60 * 60));

                  Time_Left %= (10 * 60 * 60);
                  minutes = Math.floor(Time_Left / (10 * 60));

                  Time_Left %= 10 * 60;
                  seconds = Math.floor(Time_Left / 10);
			  if (seconds < 10) {
			  	seconds = "0" + seconds;
			  }
			  if (hours < 10) {
			  	hours = "0" + hours;
			  }
		  document.getElementById('days').innerHTML = daysLeft;
		  document.getElementById('hrs').innerHTML = hours;
		  document.getElementById('min').innerHTML = minutes;
		  document.getElementById('sec').innerHTML = seconds;

         //Recursive call, keeps the clock ticking.
         setTimeout('countdown()', 1000);
}

function getCurrentMilliseconds() {
	Today = new Date();
	x = Today.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;    

    //Convert both today's date and the target date into miliseconds.                           
	Todays_Date = (new Date(y, Today.getMonth(), Today.getDate(), 
	Today.getHours(), Today.getMinutes(), Today.getSeconds(), Today.getMilliseconds() )).getTime();                                  
	return Todays_Date
}