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 (LeadingZeros27675 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27675(secs) { if (secs < 0) { document.getElementById("cntdwns27675").innerHTML = FinishMessages27675; return; } DisplayStrs27675 = DisplayFormats27675.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27675 = DisplayStrs27675.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27675 = DisplayStrs27675.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27675 = DisplayStrs27675.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27675").innerHTML = DisplayStrs27675; if (CountActives27675) //alert(SetTimeOutPeriods27675); setTimeout("CountBacks27675(" + (secs+CountSteppers27675) + ")", SetTimeOutPeriods27675); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27675)=="undefined") BackColors27675 = ""; if (typeof(ForeColors27675)=="undefined") ForeColors27675= "white"; if (typeof(TargetDates27675)=="undefined") TargetDates27675 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27675)=="undefined") DisplayFormats27675 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27675)=="undefined") CountActives27675 = true; if (typeof(FinishMessages27675)=="undefined") FinishMessages27675 = ""; if (typeof(CountSteppers27675)!="number") CountSteppers27675 = -1; if (typeof(LeadingZeros27675)=="undefined") LeadingZeros27675 = true; CountSteppers27675 = Math.ceil(CountSteppers27675); if (CountSteppers27675 == 0) CountActives27675 = false; var SetTimeOutPeriods27675 = (Math.abs(CountSteppers27675)-1)*1000 + 990; puti(BackColors27675, ForeColors27675); var dthens27675 = new Date(TargetDates27675); var dnows27675 = new Date("05/13/2025 7:55:26 AM"); if(CountSteppers27675>0) ddiffs27675 = new Date(dnows27675-dthens27675); else ddiffs27675 = new Date(dthens27675-dnows27675); gsecss27675 = Math.floor(ddiffs27675.valueOf()/1000); CountBacks27675(gsecss27675);