
function countup (date)
{
	var now = new Date();
	// set this value to the countdown date.
	var then = new Date(date);
	var gap = now.getTime() - then.getTime();
	gap = Math.floor(gap / (1000 * 60 * 60 * 24));
	// gap = Math.floor(gap);
	return gap;
}
function countdown (date)
{
	var now = new Date();
	// set this value to the countdown date.
	var then = new Date(date);
	var gap = then.getTime() - now.getTime();
	gap = Math.floor(gap / (1000 * 60 * 60 * 24));
	// gap = Math.floor(gap);
	return gap;
}
