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 (LeadingZeros27564 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27564(secs) { if (secs < 0) { document.getElementById("cntdwns27564").innerHTML = FinishMessages27564; return; } DisplayStrs27564 = DisplayFormats27564.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27564 = DisplayStrs27564.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27564 = DisplayStrs27564.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27564 = DisplayStrs27564.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27564").innerHTML = DisplayStrs27564; if (CountActives27564) //alert(SetTimeOutPeriods27564); setTimeout("CountBacks27564(" + (secs+CountSteppers27564) + ")", SetTimeOutPeriods27564); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27564)=="undefined") BackColors27564 = ""; if (typeof(ForeColors27564)=="undefined") ForeColors27564= "white"; if (typeof(TargetDates27564)=="undefined") TargetDates27564 = "03/31/2023 10:00:00 PM"; if (typeof(DisplayFormats27564)=="undefined") DisplayFormats27564 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27564)=="undefined") CountActives27564 = true; if (typeof(FinishMessages27564)=="undefined") FinishMessages27564 = ""; if (typeof(CountSteppers27564)!="number") CountSteppers27564 = -1; if (typeof(LeadingZeros27564)=="undefined") LeadingZeros27564 = true; CountSteppers27564 = Math.ceil(CountSteppers27564); if (CountSteppers27564 == 0) CountActives27564 = false; var SetTimeOutPeriods27564 = (Math.abs(CountSteppers27564)-1)*1000 + 990; puti(BackColors27564, ForeColors27564); var dthens27564 = new Date(TargetDates27564); var dnows27564 = new Date("05/13/2025 11:57:40 AM"); if(CountSteppers27564>0) ddiffs27564 = new Date(dnows27564-dthens27564); else ddiffs27564 = new Date(dthens27564-dnows27564); gsecss27564 = Math.floor(ddiffs27564.valueOf()/1000); CountBacks27564(gsecss27564);