// Copyright AMO
timerID = null;
timerRunning = false;
function STimey2k() {
now = new Date();
CurHour = now.getHours();
CurMinute = now.getMinutes();
CurMonth = now.getMonth();
CurDate = now.getDate();
CurYear = now.getYear();
CurSecond = now.getSeconds();
now = null;
Hourleft = 23 - CurHour
Minuteleft = 59 - CurMinute
Secondleft = 59 - CurSecond
var Monthleft = 11 - CurMonth
var Dateleft = 31 - CurDate
if (Monthleft!=1) {var mos="s"} else {var mos=""}
if (Dateleft!=1) {var ds="s"} else {var ds=""}
if (Hourleft!=1) {var hs="s"} else {var hs=""}
if (Minuteleft!=1) {var mis="s"} else {var mis=""}
if (Secondleft!=1) {var ss="s"} else {var ss=""}
var y2kData;
y2kData=Monthleft+' month'+mos+', '+Dateleft+' day'+ds+', '+Hourleft+' hour'+hs+', '+Minuteleft+' minute'+mis+', '+Secondleft+' second'+ss
document.y2kfrm.y2k.value=y2kData;
timerID = setTimeout("STimey2k()",1000);
timerRunning = true;
}
var timerID = null;
var timerRunning = false;
function STPY2kc() {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function SY2kc() {
// Make sure the clock is stopped
STPY2kc();
STimey2k();
}


