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 (LeadingZeros31604 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks31604(secs) {
if (secs < 0) {
document.getElementById("cntdwns31604").innerHTML = FinishMessages31604;
return;
}
DisplayStrs31604 = DisplayFormats31604.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs31604 = DisplayStrs31604.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs31604 = DisplayStrs31604.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs31604 = DisplayStrs31604.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns31604").innerHTML = DisplayStrs31604;
if (CountActives31604)
//alert(SetTimeOutPeriods31604);
setTimeout("CountBacks31604(" + (secs+CountSteppers31604) + ")", SetTimeOutPeriods31604);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors31604)=="undefined")
BackColors31604 = "";
if (typeof(ForeColors31604)=="undefined")
ForeColors31604= "white";
if (typeof(TargetDates31604)=="undefined")
TargetDates31604 = "05/31/2025 11:00:00 PM";
if (typeof(DisplayFormats31604)=="undefined")
DisplayFormats31604 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives31604)=="undefined")
CountActives31604 = true;
if (typeof(FinishMessages31604)=="undefined")
FinishMessages31604 = "";
if (typeof(CountSteppers31604)!="number")
CountSteppers31604 = -1;
if (typeof(LeadingZeros31604)=="undefined")
LeadingZeros31604 = true;
CountSteppers31604 = Math.ceil(CountSteppers31604);
if (CountSteppers31604 == 0)
CountActives31604 = false;
var SetTimeOutPeriods31604 = (Math.abs(CountSteppers31604)-1)*1000 + 990;
puti(BackColors31604, ForeColors31604);
var dthens31604 = new Date(TargetDates31604);
var dnows31604 = new Date("06/03/2025 10:22:15 PM");
if(CountSteppers31604>0)
ddiffs31604 = new Date(dnows31604-dthens31604);
else
ddiffs31604 = new Date(dthens31604-dnows31604);
gsecss31604 = Math.floor(ddiffs31604.valueOf()/1000);
CountBacks31604(gsecss31604);