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 (LeadingZeros27794 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27794(secs) { if (secs < 0) { document.getElementById("cntdwns27794").innerHTML = FinishMessages27794; return; } DisplayStrs27794 = DisplayFormats27794.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27794 = DisplayStrs27794.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27794 = DisplayStrs27794.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27794 = DisplayStrs27794.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27794").innerHTML = DisplayStrs27794; if (CountActives27794) //alert(SetTimeOutPeriods27794); setTimeout("CountBacks27794(" + (secs+CountSteppers27794) + ")", SetTimeOutPeriods27794); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27794)=="undefined") BackColors27794 = ""; if (typeof(ForeColors27794)=="undefined") ForeColors27794= "white"; if (typeof(TargetDates27794)=="undefined") TargetDates27794 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27794)=="undefined") DisplayFormats27794 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27794)=="undefined") CountActives27794 = true; if (typeof(FinishMessages27794)=="undefined") FinishMessages27794 = ""; if (typeof(CountSteppers27794)!="number") CountSteppers27794 = -1; if (typeof(LeadingZeros27794)=="undefined") LeadingZeros27794 = true; CountSteppers27794 = Math.ceil(CountSteppers27794); if (CountSteppers27794 == 0) CountActives27794 = false; var SetTimeOutPeriods27794 = (Math.abs(CountSteppers27794)-1)*1000 + 990; puti(BackColors27794, ForeColors27794); var dthens27794 = new Date(TargetDates27794); var dnows27794 = new Date("05/09/2025 10:09:35 AM"); if(CountSteppers27794>0) ddiffs27794 = new Date(dnows27794-dthens27794); else ddiffs27794 = new Date(dthens27794-dnows27794); gsecss27794 = Math.floor(ddiffs27794.valueOf()/1000); CountBacks27794(gsecss27794);