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 (LeadingZeros27528 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27528(secs) { if (secs < 0) { document.getElementById("cntdwns27528").innerHTML = FinishMessages27528; return; } DisplayStrs27528 = DisplayFormats27528.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27528 = DisplayStrs27528.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27528 = DisplayStrs27528.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27528 = DisplayStrs27528.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27528").innerHTML = DisplayStrs27528; if (CountActives27528) //alert(SetTimeOutPeriods27528); setTimeout("CountBacks27528(" + (secs+CountSteppers27528) + ")", SetTimeOutPeriods27528); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27528)=="undefined") BackColors27528 = ""; if (typeof(ForeColors27528)=="undefined") ForeColors27528= "white"; if (typeof(TargetDates27528)=="undefined") TargetDates27528 = "03/24/2023 10:00:00 PM"; if (typeof(DisplayFormats27528)=="undefined") DisplayFormats27528 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27528)=="undefined") CountActives27528 = true; if (typeof(FinishMessages27528)=="undefined") FinishMessages27528 = ""; if (typeof(CountSteppers27528)!="number") CountSteppers27528 = -1; if (typeof(LeadingZeros27528)=="undefined") LeadingZeros27528 = true; CountSteppers27528 = Math.ceil(CountSteppers27528); if (CountSteppers27528 == 0) CountActives27528 = false; var SetTimeOutPeriods27528 = (Math.abs(CountSteppers27528)-1)*1000 + 990; puti(BackColors27528, ForeColors27528); var dthens27528 = new Date(TargetDates27528); var dnows27528 = new Date("05/13/2025 6:37:38 AM"); if(CountSteppers27528>0) ddiffs27528 = new Date(dnows27528-dthens27528); else ddiffs27528 = new Date(dthens27528-dnows27528); gsecss27528 = Math.floor(ddiffs27528.valueOf()/1000); CountBacks27528(gsecss27528);