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 (LeadingZeros30248 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks30248(secs) {
if (secs < 0) {
document.getElementById("cntdwns30248").innerHTML = FinishMessages30248;
return;
}
DisplayStrs30248 = DisplayFormats30248.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs30248 = DisplayStrs30248.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs30248 = DisplayStrs30248.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs30248 = DisplayStrs30248.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns30248").innerHTML = DisplayStrs30248;
if (CountActives30248)
//alert(SetTimeOutPeriods30248);
setTimeout("CountBacks30248(" + (secs+CountSteppers30248) + ")", SetTimeOutPeriods30248);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors30248)=="undefined")
BackColors30248 = "";
if (typeof(ForeColors30248)=="undefined")
ForeColors30248= "white";
if (typeof(TargetDates30248)=="undefined")
TargetDates30248 = "04/04/2025 10:00:00 PM";
if (typeof(DisplayFormats30248)=="undefined")
DisplayFormats30248 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives30248)=="undefined")
CountActives30248 = true;
if (typeof(FinishMessages30248)=="undefined")
FinishMessages30248 = "";
if (typeof(CountSteppers30248)!="number")
CountSteppers30248 = -1;
if (typeof(LeadingZeros30248)=="undefined")
LeadingZeros30248 = true;
CountSteppers30248 = Math.ceil(CountSteppers30248);
if (CountSteppers30248 == 0)
CountActives30248 = false;
var SetTimeOutPeriods30248 = (Math.abs(CountSteppers30248)-1)*1000 + 990;
puti(BackColors30248, ForeColors30248);
var dthens30248 = new Date(TargetDates30248);
var dnows30248 = new Date("04/05/2025 1:34:59 PM");
if(CountSteppers30248>0)
ddiffs30248 = new Date(dnows30248-dthens30248);
else
ddiffs30248 = new Date(dthens30248-dnows30248);
gsecss30248 = Math.floor(ddiffs30248.valueOf()/1000);
CountBacks30248(gsecss30248);