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 (LeadingZeros28504 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks28504(secs) {
if (secs < 0) {
document.getElementById("cntdwns28504").innerHTML = FinishMessages28504;
return;
}
DisplayStrs28504 = DisplayFormats28504.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs28504 = DisplayStrs28504.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs28504 = DisplayStrs28504.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs28504 = DisplayStrs28504.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns28504").innerHTML = DisplayStrs28504;
if (CountActives28504)
//alert(SetTimeOutPeriods28504);
setTimeout("CountBacks28504(" + (secs+CountSteppers28504) + ")", SetTimeOutPeriods28504);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors28504)=="undefined")
BackColors28504 = "";
if (typeof(ForeColors28504)=="undefined")
ForeColors28504= "white";
if (typeof(TargetDates28504)=="undefined")
TargetDates28504 = "06/12/2023 10:00:00 PM";
if (typeof(DisplayFormats28504)=="undefined")
DisplayFormats28504 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives28504)=="undefined")
CountActives28504 = true;
if (typeof(FinishMessages28504)=="undefined")
FinishMessages28504 = "";
if (typeof(CountSteppers28504)!="number")
CountSteppers28504 = -1;
if (typeof(LeadingZeros28504)=="undefined")
LeadingZeros28504 = true;
CountSteppers28504 = Math.ceil(CountSteppers28504);
if (CountSteppers28504 == 0)
CountActives28504 = false;
var SetTimeOutPeriods28504 = (Math.abs(CountSteppers28504)-1)*1000 + 990;
puti(BackColors28504, ForeColors28504);
var dthens28504 = new Date(TargetDates28504);
var dnows28504 = new Date("06/08/2025 6:52:30 AM");
if(CountSteppers28504>0)
ddiffs28504 = new Date(dnows28504-dthens28504);
else
ddiffs28504 = new Date(dthens28504-dnows28504);
gsecss28504 = Math.floor(ddiffs28504.valueOf()/1000);
CountBacks28504(gsecss28504);