 var browser = new Array(3);
 var onLoads = new Array();
 var onReflows = new Array();
 var drawWindowArray = new Array();

 if(navigator.platform.match(/win/i))
  browser[2]="win";
 else if(navigator.platform.match(/mac/i))
  browser[2]="mac";
 else
  browser[2]="x";

 var permMonth='';

 if(navigator.appName=="Netscape"){
   browser[0]="ns";
   browser[1]=parseInt(navigator.appVersion);
 }
 else if(navigator.appName=="Microsoft Internet Explorer"){
  browser[0]="ie";
  string=navigator.appVersion;
  match=string.match(/MSIE ([0-9]+\.[0-9]+)/);
  browser[1]=match[1];
 }
 
function array_push(array, Element) {
  if(array.length == 1 && !array[0]) 
   New = 0;
  else
   New = array.length;
  array[New] = Element;
  return array;
}

function loadEvent() {
 if(!onLoads)
  return false;
 for(var i =0; i < onLoads.length; i++) {
  eval(onLoads[i]);
 }
}
window.onload = loadEvent;

function reflowEvent() { }

function number_format(num, decimal) {
 var str = "" + Math.round(num * Math.pow(10, decimal));
 while(str.length <= decimal) {
  str = "0" + str;
 }
 var position = str.length - decimal;
 return str.substr(0, position)+"."+str.substr(position, str.length);
}

var clockID = 0;

function UpdateClock() {
 if(clockID) {
  clearTimeout(clockID);
  clockID  = 0;
 }

 var tDate = new Date();

 document.clock.local.value = "" 
  + tDate.getHours() + ":";
 if (tDate.getMinutes() <9){
  document.clock.local.value += "0";
 } 
 document.clock.local.value += tDate.getMinutes() + ":" 
 if (tDate.getSeconds() <9){
  document.clock.local.value += "0";
 } 
 document.clock.local.value += tDate.getSeconds();
   
 clockID = setTimeout("UpdateClock()", 1000);



 document.clock.utc.value = "";

 if (tDate.getUTCHours() <9){
  document.clock.utc.value += "0";
 } 
 document.clock.utc.value += tDate.getUTCHours() + ":";
 if (tDate.getUTCMinutes() <9){
  document.clock.utc.value += "0";
 } 
 document.clock.utc.value += tDate.getUTCMinutes() + ":" 
 if (tDate.getUTCSeconds() <9){
  document.clock.utc.value += "0";
 } 
 document.clock.utc.value += tDate.getUTCSeconds();
   
 clockID = setTimeout("UpdateClock()", 1000);
}

function startClock() {
 clockID = setTimeout("UpdateClock()", 500);
}

function killClock() {
 if(clockID) {
  clearTimeout(clockID);
  clockID  = 0;
 }
}

onLoad = array_push(onLoads, 'startClock()');
