Objective: A countdown timer that countdown to a certain time that is synchronized to server time. This means that does not matter where the client is from all clients will see the same exact count down. The countdown will also implement a button that when ever pressed will reset the countdown to 15 seconds regardless of which client pressed it. Once again all clients will see the same exact 15 seconds countdown.

Accomplished: So far I'm able to get the countdown to be synchronized to my server time. The timer actually counts to a set time according to the server time and date no matter who is looking at it.

PROBLEM: I'm unable to get the button to reset the countdown timer to 15 seconds regardless of who clicked it. Every time the same button is click the timer must reset to 15 seconds for everyone looking at it.

Code:
<html>
<head>
<title></title>

<script type="text/javascript">

var month = '0';       //  '*' for next month, '0' for this month or 1 through 12 for the month 
var day = '13';        //  Offset for day of month day or + day  
var hour = 21;         //  0 through 23 for the hours of the day
var tz = -5;           //  Offset for your timezone in hours from UTC
var lab = 'tzcd';      //  The id of the page entry where the timezone countdown is to show

function start() {
	   displayTZCountDown(setTZCountDown(month,day,hour,tz),lab);
}

window.onload = start;

function setTZCountDown(month,day,hour,tz) {
   var toDate = new Date();

   if (month == '*') {
      toDate.setMonth(toDate.getMonth() + 1);
   } else if (month > 0) { 
      if (month <= toDate.getMonth())toDate.setYear(toDate.getYear() + 1);
	  toDate.setMonth(month-1);
   }
   
   if (day.substr(0,1) == '+') {
      var day1 = parseInt(day.substr(1));
      toDate.setDate(toDate.getDate()+day1);
   } else {
      toDate.setDate(day);
   }

   toDate.setHours(hour);
   toDate.setMinutes(0-(tz*60));
   toDate.setSeconds(0);
   var currenttime = '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL"-->'
   var fromDate = new Date(currenttime);
   fromDate.setMinutes(fromDate.getMinutes() + fromDate.getTimezoneOffset());
   var diffDate = new Date(0);
   diffDate.setMilliseconds(toDate - fromDate);
   return Math.floor(diffDate.valueOf()/1000);
}

function setTimerto() {
// I NEED HELP IN HERE. I WANT THIS FUNCTION TO SET
// THE REAL TIME COUNDOWN TO 15 SECONDS ONCE THE BUTTON
// IS CLICKED REGARDLESS OF WHAT THE COUNTDOWN WAS AT
// WHEN THE BUTTON WAS CLICKED. THE COUNT DOWN NEEDS TO
// BE SYNCHRONIZED WITH SERVER TIME AS WELL.	
}

function displayTZCountDown(countdown,tzcd) 
{
   if (countdown < 0) { 
      document.getElementById(tzcd).innerHTML = 'ENDED';
   } else {
      var secs = countdown % 60; 
      if (secs < 10) { 
         secs = '0'+secs;
      } 
      var countdown1 = (countdown - secs) / 60;
      var mins = countdown1 % 60; 
      if (mins < 10) { 
         mins = '0'+mins;
      }
      countdown1 = (countdown1 - mins) / 60;
      var hours = countdown1 % 24;
      var days = (countdown1 - hours) / 24;
      if (hours == 0 && mins == 0 && secs < 15) {
         document.getElementById(tzcd).innerHTML ='<font color="red">' +hours+ ':' +mins+ ':' +secs+ '</font><br /><input type="button" value="CLICK" onclick="setTimerto()">';
      } else {
         document.getElementById(tzcd).innerHTML = hours+ ':' +mins+ ':' +secs+ '<br /><input type="button" value="CLICK" onclick="setTimerto()">';
      }
   setTimeout('displayTZCountDown('+(countdown-1)+',\''+tzcd+'\');',999);
}
}

</script>

</head>

<body>

<span id="tzcd" style="font-weight: bold; font-size: 30px;"></span>

</body>
</html>