function calcage(secs, num1, num2, addDay, seconds) {
if (addDay == 1){
s = ((Math.floor(secs/num1))).toString();
}
else{
s = ((Math.floor(secs/num1))%num2).toString();
}
if (LeadingZeros31602 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks31602(secs) {
if (secs < 0) {
document.getElementById("cntdwns31602").innerHTML = FinishMessages31602;
return;
}
DisplayStrs31602 = DisplayFormats31602.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs31602 = DisplayStrs31602.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs31602 = DisplayStrs31602.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs31602 = DisplayStrs31602.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns31602").innerHTML = DisplayStrs31602;
if (CountActives31602)
//alert(SetTimeOutPeriods31602);
setTimeout("CountBacks31602(" + (secs+CountSteppers31602) + ")", SetTimeOutPeriods31602);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors31602)=="undefined")
BackColors31602 = "";
if (typeof(ForeColors31602)=="undefined")
ForeColors31602= "white";
if (typeof(TargetDates31602)=="undefined")
TargetDates31602 = "04/21/2025 11:00:00 PM";
if (typeof(DisplayFormats31602)=="undefined")
DisplayFormats31602 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives31602)=="undefined")
CountActives31602 = true;
if (typeof(FinishMessages31602)=="undefined")
FinishMessages31602 = "";
if (typeof(CountSteppers31602)!="number")
CountSteppers31602 = -1;
if (typeof(LeadingZeros31602)=="undefined")
LeadingZeros31602 = true;
CountSteppers31602 = Math.ceil(CountSteppers31602);
if (CountSteppers31602 == 0)
CountActives31602 = false;
var SetTimeOutPeriods31602 = (Math.abs(CountSteppers31602)-1)*1000 + 990;
puti(BackColors31602, ForeColors31602);
var dthens31602 = new Date(TargetDates31602);
var dnows31602 = new Date("05/05/2025 10:20:53 AM");
if(CountSteppers31602>0)
ddiffs31602 = new Date(dnows31602-dthens31602);
else
ddiffs31602 = new Date(dthens31602-dnows31602);
gsecss31602 = Math.floor(ddiffs31602.valueOf()/1000);
CountBacks31602(gsecss31602);