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 (LeadingZeros28487 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks28487(secs) { if (secs < 0) { document.getElementById("cntdwns28487").innerHTML = FinishMessages28487; return; } DisplayStrs28487 = DisplayFormats28487.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs28487 = DisplayStrs28487.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs28487 = DisplayStrs28487.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs28487 = DisplayStrs28487.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns28487").innerHTML = DisplayStrs28487; if (CountActives28487) //alert(SetTimeOutPeriods28487); setTimeout("CountBacks28487(" + (secs+CountSteppers28487) + ")", SetTimeOutPeriods28487); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors28487)=="undefined") BackColors28487 = ""; if (typeof(ForeColors28487)=="undefined") ForeColors28487= "white"; if (typeof(TargetDates28487)=="undefined") TargetDates28487 = "06/12/2023 10:00:00 PM"; if (typeof(DisplayFormats28487)=="undefined") DisplayFormats28487 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives28487)=="undefined") CountActives28487 = true; if (typeof(FinishMessages28487)=="undefined") FinishMessages28487 = ""; if (typeof(CountSteppers28487)!="number") CountSteppers28487 = -1; if (typeof(LeadingZeros28487)=="undefined") LeadingZeros28487 = true; CountSteppers28487 = Math.ceil(CountSteppers28487); if (CountSteppers28487 == 0) CountActives28487 = false; var SetTimeOutPeriods28487 = (Math.abs(CountSteppers28487)-1)*1000 + 990; puti(BackColors28487, ForeColors28487); var dthens28487 = new Date(TargetDates28487); var dnows28487 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers28487>0) ddiffs28487 = new Date(dnows28487-dthens28487); else ddiffs28487 = new Date(dthens28487-dnows28487); gsecss28487 = Math.floor(ddiffs28487.valueOf()/1000); CountBacks28487(gsecss28487);