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 (LeadingZeros27750 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27750(secs) { if (secs < 0) { document.getElementById("cntdwns27750").innerHTML = FinishMessages27750; return; } DisplayStrs27750 = DisplayFormats27750.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27750 = DisplayStrs27750.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27750 = DisplayStrs27750.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27750 = DisplayStrs27750.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27750").innerHTML = DisplayStrs27750; if (CountActives27750) //alert(SetTimeOutPeriods27750); setTimeout("CountBacks27750(" + (secs+CountSteppers27750) + ")", SetTimeOutPeriods27750); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27750)=="undefined") BackColors27750 = ""; if (typeof(ForeColors27750)=="undefined") ForeColors27750= "white"; if (typeof(TargetDates27750)=="undefined") TargetDates27750 = "03/27/2023 11:00:00 PM"; if (typeof(DisplayFormats27750)=="undefined") DisplayFormats27750 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27750)=="undefined") CountActives27750 = true; if (typeof(FinishMessages27750)=="undefined") FinishMessages27750 = ""; if (typeof(CountSteppers27750)!="number") CountSteppers27750 = -1; if (typeof(LeadingZeros27750)=="undefined") LeadingZeros27750 = true; CountSteppers27750 = Math.ceil(CountSteppers27750); if (CountSteppers27750 == 0) CountActives27750 = false; var SetTimeOutPeriods27750 = (Math.abs(CountSteppers27750)-1)*1000 + 990; puti(BackColors27750, ForeColors27750); var dthens27750 = new Date(TargetDates27750); var dnows27750 = new Date("05/13/2025 8:02:06 AM"); if(CountSteppers27750>0) ddiffs27750 = new Date(dnows27750-dthens27750); else ddiffs27750 = new Date(dthens27750-dnows27750); gsecss27750 = Math.floor(ddiffs27750.valueOf()/1000); CountBacks27750(gsecss27750);