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 (LeadingZeros32031 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32031(secs) { if (secs < 0) { document.getElementById("cntdwns32031").innerHTML = FinishMessages32031; return; } DisplayStrs32031 = DisplayFormats32031.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32031 = DisplayStrs32031.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32031 = DisplayStrs32031.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32031 = DisplayStrs32031.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32031").innerHTML = DisplayStrs32031; if (CountActives32031) //alert(SetTimeOutPeriods32031); setTimeout("CountBacks32031(" + (secs+CountSteppers32031) + ")", SetTimeOutPeriods32031); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32031)=="undefined") BackColors32031 = ""; if (typeof(ForeColors32031)=="undefined") ForeColors32031= "white"; if (typeof(TargetDates32031)=="undefined") TargetDates32031 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32031)=="undefined") DisplayFormats32031 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32031)=="undefined") CountActives32031 = true; if (typeof(FinishMessages32031)=="undefined") FinishMessages32031 = ""; if (typeof(CountSteppers32031)!="number") CountSteppers32031 = -1; if (typeof(LeadingZeros32031)=="undefined") LeadingZeros32031 = true; CountSteppers32031 = Math.ceil(CountSteppers32031); if (CountSteppers32031 == 0) CountActives32031 = false; var SetTimeOutPeriods32031 = (Math.abs(CountSteppers32031)-1)*1000 + 990; puti(BackColors32031, ForeColors32031); var dthens32031 = new Date(TargetDates32031); var dnows32031 = new Date("03/29/2025 3:10:11 PM"); if(CountSteppers32031>0) ddiffs32031 = new Date(dnows32031-dthens32031); else ddiffs32031 = new Date(dthens32031-dnows32031); gsecss32031 = Math.floor(ddiffs32031.valueOf()/1000); CountBacks32031(gsecss32031);