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 (LeadingZeros27795 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27795(secs) { if (secs < 0) { document.getElementById("cntdwns27795").innerHTML = FinishMessages27795; return; } DisplayStrs27795 = DisplayFormats27795.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27795 = DisplayStrs27795.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27795 = DisplayStrs27795.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27795 = DisplayStrs27795.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27795").innerHTML = DisplayStrs27795; if (CountActives27795) //alert(SetTimeOutPeriods27795); setTimeout("CountBacks27795(" + (secs+CountSteppers27795) + ")", SetTimeOutPeriods27795); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27795)=="undefined") BackColors27795 = ""; if (typeof(ForeColors27795)=="undefined") ForeColors27795= "white"; if (typeof(TargetDates27795)=="undefined") TargetDates27795 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27795)=="undefined") DisplayFormats27795 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27795)=="undefined") CountActives27795 = true; if (typeof(FinishMessages27795)=="undefined") FinishMessages27795 = ""; if (typeof(CountSteppers27795)!="number") CountSteppers27795 = -1; if (typeof(LeadingZeros27795)=="undefined") LeadingZeros27795 = true; CountSteppers27795 = Math.ceil(CountSteppers27795); if (CountSteppers27795 == 0) CountActives27795 = false; var SetTimeOutPeriods27795 = (Math.abs(CountSteppers27795)-1)*1000 + 990; puti(BackColors27795, ForeColors27795); var dthens27795 = new Date(TargetDates27795); var dnows27795 = new Date("05/09/2025 10:10:30 AM"); if(CountSteppers27795>0) ddiffs27795 = new Date(dnows27795-dthens27795); else ddiffs27795 = new Date(dthens27795-dnows27795); gsecss27795 = Math.floor(ddiffs27795.valueOf()/1000); CountBacks27795(gsecss27795);