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 (LeadingZeros29022 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks29022(secs) {
if (secs < 0) {
document.getElementById("cntdwns29022").innerHTML = FinishMessages29022;
return;
}
DisplayStrs29022 = DisplayFormats29022.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs29022 = DisplayStrs29022.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs29022 = DisplayStrs29022.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs29022 = DisplayStrs29022.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns29022").innerHTML = DisplayStrs29022;
if (CountActives29022)
//alert(SetTimeOutPeriods29022);
setTimeout("CountBacks29022(" + (secs+CountSteppers29022) + ")", SetTimeOutPeriods29022);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors29022)=="undefined")
BackColors29022 = "";
if (typeof(ForeColors29022)=="undefined")
ForeColors29022= "white";
if (typeof(TargetDates29022)=="undefined")
TargetDates29022 = "10/03/2023 10:00:00 PM";
if (typeof(DisplayFormats29022)=="undefined")
DisplayFormats29022 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives29022)=="undefined")
CountActives29022 = true;
if (typeof(FinishMessages29022)=="undefined")
FinishMessages29022 = "";
if (typeof(CountSteppers29022)!="number")
CountSteppers29022 = -1;
if (typeof(LeadingZeros29022)=="undefined")
LeadingZeros29022 = true;
CountSteppers29022 = Math.ceil(CountSteppers29022);
if (CountSteppers29022 == 0)
CountActives29022 = false;
var SetTimeOutPeriods29022 = (Math.abs(CountSteppers29022)-1)*1000 + 990;
puti(BackColors29022, ForeColors29022);
var dthens29022 = new Date(TargetDates29022);
var dnows29022 = new Date("06/08/2025 7:26:13 AM");
if(CountSteppers29022>0)
ddiffs29022 = new Date(dnows29022-dthens29022);
else
ddiffs29022 = new Date(dthens29022-dnows29022);
gsecss29022 = Math.floor(ddiffs29022.valueOf()/1000);
CountBacks29022(gsecss29022);