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 (LeadingZeros27956 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27956(secs) { if (secs < 0) { document.getElementById("cntdwns27956").innerHTML = FinishMessages27956; return; } DisplayStrs27956 = DisplayFormats27956.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27956 = DisplayStrs27956.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27956 = DisplayStrs27956.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27956 = DisplayStrs27956.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27956").innerHTML = DisplayStrs27956; if (CountActives27956) //alert(SetTimeOutPeriods27956); setTimeout("CountBacks27956(" + (secs+CountSteppers27956) + ")", SetTimeOutPeriods27956); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27956)=="undefined") BackColors27956 = ""; if (typeof(ForeColors27956)=="undefined") ForeColors27956= "white"; if (typeof(TargetDates27956)=="undefined") TargetDates27956 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27956)=="undefined") DisplayFormats27956 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27956)=="undefined") CountActives27956 = true; if (typeof(FinishMessages27956)=="undefined") FinishMessages27956 = ""; if (typeof(CountSteppers27956)!="number") CountSteppers27956 = -1; if (typeof(LeadingZeros27956)=="undefined") LeadingZeros27956 = true; CountSteppers27956 = Math.ceil(CountSteppers27956); if (CountSteppers27956 == 0) CountActives27956 = false; var SetTimeOutPeriods27956 = (Math.abs(CountSteppers27956)-1)*1000 + 990; puti(BackColors27956, ForeColors27956); var dthens27956 = new Date(TargetDates27956); var dnows27956 = new Date("05/11/2025 1:36:28 AM"); if(CountSteppers27956>0) ddiffs27956 = new Date(dnows27956-dthens27956); else ddiffs27956 = new Date(dthens27956-dnows27956); gsecss27956 = Math.floor(ddiffs27956.valueOf()/1000); CountBacks27956(gsecss27956);