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 (LeadingZeros26896 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks26896(secs) { if (secs < 0) { document.getElementById("cntdwns26896").innerHTML = FinishMessages26896; return; } DisplayStrs26896 = DisplayFormats26896.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs26896 = DisplayStrs26896.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs26896 = DisplayStrs26896.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs26896 = DisplayStrs26896.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns26896").innerHTML = DisplayStrs26896; if (CountActives26896) //alert(SetTimeOutPeriods26896); setTimeout("CountBacks26896(" + (secs+CountSteppers26896) + ")", SetTimeOutPeriods26896); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors26896)=="undefined") BackColors26896 = ""; if (typeof(ForeColors26896)=="undefined") ForeColors26896= "white"; if (typeof(TargetDates26896)=="undefined") TargetDates26896 = "06/02/2023 10:00:00 PM"; if (typeof(DisplayFormats26896)=="undefined") DisplayFormats26896 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives26896)=="undefined") CountActives26896 = true; if (typeof(FinishMessages26896)=="undefined") FinishMessages26896 = ""; if (typeof(CountSteppers26896)!="number") CountSteppers26896 = -1; if (typeof(LeadingZeros26896)=="undefined") LeadingZeros26896 = true; CountSteppers26896 = Math.ceil(CountSteppers26896); if (CountSteppers26896 == 0) CountActives26896 = false; var SetTimeOutPeriods26896 = (Math.abs(CountSteppers26896)-1)*1000 + 990; puti(BackColors26896, ForeColors26896); var dthens26896 = new Date(TargetDates26896); var dnows26896 = new Date("05/09/2025 10:07:48 AM"); if(CountSteppers26896>0) ddiffs26896 = new Date(dnows26896-dthens26896); else ddiffs26896 = new Date(dthens26896-dnows26896); gsecss26896 = Math.floor(ddiffs26896.valueOf()/1000); CountBacks26896(gsecss26896);