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 (LeadingZeros32102 && s.length < 2)
s = "0" + s;
if (seconds == 1) {
var classString = "count-seconds";
} else {
var classString = "";
}
return "" + s + "";
}
function CountBacks32102(secs) {
if (secs < 0) {
document.getElementById("cntdwns32102").innerHTML = FinishMessages32102;
return;
}
DisplayStrs32102 = DisplayFormats32102.replace(/%%D%%/g, calcage(secs,86400,100000,0));
DisplayStrs32102 = DisplayStrs32102.replace(/%%H%%/g, calcage(secs,3600,24,1));
DisplayStrs32102 = DisplayStrs32102.replace(/%%M%%/g, calcage(secs,60,60,0));
DisplayStrs32102 = DisplayStrs32102.replace(/%%S%%/g, calcage(secs,1,60,0,1));
document.getElementById("cntdwns32102").innerHTML = DisplayStrs32102;
if (CountActives32102)
//alert(SetTimeOutPeriods32102);
setTimeout("CountBacks32102(" + (secs+CountSteppers32102) + ")", SetTimeOutPeriods32102);
}
function puti(backcolor, forecolor) {
document.write("");
}
if (typeof(BackColors32102)=="undefined")
BackColors32102 = "";
if (typeof(ForeColors32102)=="undefined")
ForeColors32102= "white";
if (typeof(TargetDates32102)=="undefined")
TargetDates32102 = "06/02/2025 10:00:00 PM";
if (typeof(DisplayFormats32102)=="undefined")
DisplayFormats32102 = " %%H%%:%%M%%:%%S%%";
if (typeof(CountActives32102)=="undefined")
CountActives32102 = true;
if (typeof(FinishMessages32102)=="undefined")
FinishMessages32102 = "";
if (typeof(CountSteppers32102)!="number")
CountSteppers32102 = -1;
if (typeof(LeadingZeros32102)=="undefined")
LeadingZeros32102 = true;
CountSteppers32102 = Math.ceil(CountSteppers32102);
if (CountSteppers32102 == 0)
CountActives32102 = false;
var SetTimeOutPeriods32102 = (Math.abs(CountSteppers32102)-1)*1000 + 990;
puti(BackColors32102, ForeColors32102);
var dthens32102 = new Date(TargetDates32102);
var dnows32102 = new Date("06/03/2025 9:28:30 PM");
if(CountSteppers32102>0)
ddiffs32102 = new Date(dnows32102-dthens32102);
else
ddiffs32102 = new Date(dthens32102-dnows32102);
gsecss32102 = Math.floor(ddiffs32102.valueOf()/1000);
CountBacks32102(gsecss32102);