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 (LeadingZeros28224 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks28224(secs) {
if (secs < 0) {
document.getElementById("cntdwns28224").innerHTML = FinishMessages28224;
return;
}
DisplayStrs28224 = DisplayFormats28224.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs28224 = DisplayStrs28224.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs28224 = DisplayStrs28224.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs28224 = DisplayStrs28224.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns28224").innerHTML = DisplayStrs28224;
if (CountActives28224)
//alert(SetTimeOutPeriods28224);
setTimeout("CountBacks28224(" + (secs+CountSteppers28224) + ")", SetTimeOutPeriods28224);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors28224)=="undefined")
BackColors28224 = "";
if (typeof(ForeColors28224)=="undefined")
ForeColors28224= "white";
if (typeof(TargetDates28224)=="undefined")
TargetDates28224 = "06/13/2023 10:00:00 PM";
if (typeof(DisplayFormats28224)=="undefined")
DisplayFormats28224 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives28224)=="undefined")
CountActives28224 = true;
if (typeof(FinishMessages28224)=="undefined")
FinishMessages28224 = "";
if (typeof(CountSteppers28224)!="number")
CountSteppers28224 = -1;
if (typeof(LeadingZeros28224)=="undefined")
LeadingZeros28224 = true;
CountSteppers28224 = Math.ceil(CountSteppers28224);
if (CountSteppers28224 == 0)
CountActives28224 = false;
var SetTimeOutPeriods28224 = (Math.abs(CountSteppers28224)-1)*1000 + 990;
puti(BackColors28224, ForeColors28224);
var dthens28224 = new Date(TargetDates28224);
var dnows28224 = new Date("06/08/2025 8:19:51 AM");
if(CountSteppers28224>0)
ddiffs28224 = new Date(dnows28224-dthens28224);
else
ddiffs28224 = new Date(dthens28224-dnows28224);
gsecss28224 = Math.floor(ddiffs28224.valueOf()/1000);
CountBacks28224(gsecss28224);