<!--
var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   tDate = new Date();
   month = tDate.getMonth() + 1;
   day =   tDate.getDate();
   year =  tDate.getFullYear();
   hour = tDate.getHours();
   minute = tDate.getMinutes();
   second = tDate.getSeconds();

    var months= new Array(12) 
    months[1]="January"; 
    months[2]="February"; 
    months[3]="March"; 
    months[4]="April"; 
    months[5]="May"; 
    months[6]="June"; 
    months[7]="July"; 
    months[8]="August"; 
    months[9]="September"; 
    months[10]="October"; 
    months[11]="November"; 
    months[12]="December"; 

   if (second < 10) second = "0"+second;
   if (minute < 10) minute = "0"+minute;

   content = "" 
        + day + " " 
        + months[month] + " " 
        + year + ", " 
        + hour + ":" 
        + minute + ":" 
        + second;

   setInnnerHTML("date", content);

   
   
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}

function setInnnerHTML(divid, content){
        // first delete existing content nodes
        clearInnerHTML(document.getElementById(divid));    
	// create a DIV element, using the variable eDIV as a reference to it
	eDIV = document.createElement("div");
	//use the setAttribute method to assign it an id
	eDIV.setAttribute("id","timestamp");
	// add the text "hello world" to the div with createTextNode
        objdate = document.createTextNode(content);
	eDIV.appendChild(objdate);
	// append your newly created DIV element to an already existing element.
	document.getElementById(divid).appendChild(eDIV);
}


function clearInnerHTML(obj) {
	// perform a shallow clone on obj
	nObj = obj.cloneNode(false);
	// insert the cloned object into the DOM before the original one
	obj.parentNode.insertBefore(nObj,obj);
	// remove the original object
	obj.parentNode.removeChild(obj);
}
//-->
