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 (LeadingZeros29403 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks29403(secs) {
if (secs < 0) {
document.getElementById("cntdwns29403").innerHTML = FinishMessages29403;
return;
}
DisplayStrs29403 = DisplayFormats29403.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs29403 = DisplayStrs29403.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs29403 = DisplayStrs29403.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs29403 = DisplayStrs29403.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns29403").innerHTML = DisplayStrs29403;
if (CountActives29403)
//alert(SetTimeOutPeriods29403);
setTimeout("CountBacks29403(" + (secs+CountSteppers29403) + ")", SetTimeOutPeriods29403);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors29403)=="undefined")
BackColors29403 = "";
if (typeof(ForeColors29403)=="undefined")
ForeColors29403= "white";
if (typeof(TargetDates29403)=="undefined")
TargetDates29403 = "12/03/2023 10:00:00 PM";
if (typeof(DisplayFormats29403)=="undefined")
DisplayFormats29403 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives29403)=="undefined")
CountActives29403 = true;
if (typeof(FinishMessages29403)=="undefined")
FinishMessages29403 = "";
if (typeof(CountSteppers29403)!="number")
CountSteppers29403 = -1;
if (typeof(LeadingZeros29403)=="undefined")
LeadingZeros29403 = true;
CountSteppers29403 = Math.ceil(CountSteppers29403);
if (CountSteppers29403 == 0)
CountActives29403 = false;
var SetTimeOutPeriods29403 = (Math.abs(CountSteppers29403)-1)*1000 + 990;
puti(BackColors29403, ForeColors29403);
var dthens29403 = new Date(TargetDates29403);
var dnows29403 = new Date("06/08/2025 8:49:46 PM");
if(CountSteppers29403>0)
ddiffs29403 = new Date(dnows29403-dthens29403);
else
ddiffs29403 = new Date(dthens29403-dnows29403);
gsecss29403 = Math.floor(ddiffs29403.valueOf()/1000);
CountBacks29403(gsecss29403);