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 (LeadingZeros27843 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27843(secs) { if (secs < 0) { document.getElementById("cntdwns27843").innerHTML = FinishMessages27843; return; } DisplayStrs27843 = DisplayFormats27843.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27843 = DisplayStrs27843.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27843 = DisplayStrs27843.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27843 = DisplayStrs27843.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27843").innerHTML = DisplayStrs27843; if (CountActives27843) //alert(SetTimeOutPeriods27843); setTimeout("CountBacks27843(" + (secs+CountSteppers27843) + ")", SetTimeOutPeriods27843); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27843)=="undefined") BackColors27843 = ""; if (typeof(ForeColors27843)=="undefined") ForeColors27843= "white"; if (typeof(TargetDates27843)=="undefined") TargetDates27843 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats27843)=="undefined") DisplayFormats27843 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27843)=="undefined") CountActives27843 = true; if (typeof(FinishMessages27843)=="undefined") FinishMessages27843 = ""; if (typeof(CountSteppers27843)!="number") CountSteppers27843 = -1; if (typeof(LeadingZeros27843)=="undefined") LeadingZeros27843 = true; CountSteppers27843 = Math.ceil(CountSteppers27843); if (CountSteppers27843 == 0) CountActives27843 = false; var SetTimeOutPeriods27843 = (Math.abs(CountSteppers27843)-1)*1000 + 990; puti(BackColors27843, ForeColors27843); var dthens27843 = new Date(TargetDates27843); var dnows27843 = new Date("05/13/2025 8:00:42 AM"); if(CountSteppers27843>0) ddiffs27843 = new Date(dnows27843-dthens27843); else ddiffs27843 = new Date(dthens27843-dnows27843); gsecss27843 = Math.floor(ddiffs27843.valueOf()/1000); CountBacks27843(gsecss27843);