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 (LeadingZeros27961 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks27961(secs) {
if (secs < 0) {
document.getElementById("cntdwns27961").innerHTML = FinishMessages27961;
return;
}
DisplayStrs27961 = DisplayFormats27961.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs27961 = DisplayStrs27961.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs27961 = DisplayStrs27961.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs27961 = DisplayStrs27961.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns27961").innerHTML = DisplayStrs27961;
if (CountActives27961)
//alert(SetTimeOutPeriods27961);
setTimeout("CountBacks27961(" + (secs+CountSteppers27961) + ")", SetTimeOutPeriods27961);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors27961)=="undefined")
BackColors27961 = "";
if (typeof(ForeColors27961)=="undefined")
ForeColors27961= "white";
if (typeof(TargetDates27961)=="undefined")
TargetDates27961 = "10/02/2023 10:00:00 PM";
if (typeof(DisplayFormats27961)=="undefined")
DisplayFormats27961 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives27961)=="undefined")
CountActives27961 = true;
if (typeof(FinishMessages27961)=="undefined")
FinishMessages27961 = "";
if (typeof(CountSteppers27961)!="number")
CountSteppers27961 = -1;
if (typeof(LeadingZeros27961)=="undefined")
LeadingZeros27961 = true;
CountSteppers27961 = Math.ceil(CountSteppers27961);
if (CountSteppers27961 == 0)
CountActives27961 = false;
var SetTimeOutPeriods27961 = (Math.abs(CountSteppers27961)-1)*1000 + 990;
puti(BackColors27961, ForeColors27961);
var dthens27961 = new Date(TargetDates27961);
var dnows27961 = new Date("06/08/2025 6:26:37 PM");
if(CountSteppers27961>0)
ddiffs27961 = new Date(dnows27961-dthens27961);
else
ddiffs27961 = new Date(dthens27961-dnows27961);
gsecss27961 = Math.floor(ddiffs27961.valueOf()/1000);
CountBacks27961(gsecss27961);