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 (LeadingZeros27844 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27844(secs) { if (secs < 0) { document.getElementById("cntdwns27844").innerHTML = FinishMessages27844; return; } DisplayStrs27844 = DisplayFormats27844.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27844 = DisplayStrs27844.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27844 = DisplayStrs27844.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27844 = DisplayStrs27844.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27844").innerHTML = DisplayStrs27844; if (CountActives27844) //alert(SetTimeOutPeriods27844); setTimeout("CountBacks27844(" + (secs+CountSteppers27844) + ")", SetTimeOutPeriods27844); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27844)=="undefined") BackColors27844 = ""; if (typeof(ForeColors27844)=="undefined") ForeColors27844= "white"; if (typeof(TargetDates27844)=="undefined") TargetDates27844 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats27844)=="undefined") DisplayFormats27844 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27844)=="undefined") CountActives27844 = true; if (typeof(FinishMessages27844)=="undefined") FinishMessages27844 = ""; if (typeof(CountSteppers27844)!="number") CountSteppers27844 = -1; if (typeof(LeadingZeros27844)=="undefined") LeadingZeros27844 = true; CountSteppers27844 = Math.ceil(CountSteppers27844); if (CountSteppers27844 == 0) CountActives27844 = false; var SetTimeOutPeriods27844 = (Math.abs(CountSteppers27844)-1)*1000 + 990; puti(BackColors27844, ForeColors27844); var dthens27844 = new Date(TargetDates27844); var dnows27844 = new Date("05/13/2025 7:55:26 AM"); if(CountSteppers27844>0) ddiffs27844 = new Date(dnows27844-dthens27844); else ddiffs27844 = new Date(dthens27844-dnows27844); gsecss27844 = Math.floor(ddiffs27844.valueOf()/1000); CountBacks27844(gsecss27844);