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 (LeadingZeros27674 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27674(secs) { if (secs < 0) { document.getElementById("cntdwns27674").innerHTML = FinishMessages27674; return; } DisplayStrs27674 = DisplayFormats27674.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27674 = DisplayStrs27674.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27674 = DisplayStrs27674.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27674 = DisplayStrs27674.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27674").innerHTML = DisplayStrs27674; if (CountActives27674) //alert(SetTimeOutPeriods27674); setTimeout("CountBacks27674(" + (secs+CountSteppers27674) + ")", SetTimeOutPeriods27674); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27674)=="undefined") BackColors27674 = ""; if (typeof(ForeColors27674)=="undefined") ForeColors27674= "white"; if (typeof(TargetDates27674)=="undefined") TargetDates27674 = "06/06/2023 11:00:00 PM"; if (typeof(DisplayFormats27674)=="undefined") DisplayFormats27674 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27674)=="undefined") CountActives27674 = true; if (typeof(FinishMessages27674)=="undefined") FinishMessages27674 = ""; if (typeof(CountSteppers27674)!="number") CountSteppers27674 = -1; if (typeof(LeadingZeros27674)=="undefined") LeadingZeros27674 = true; CountSteppers27674 = Math.ceil(CountSteppers27674); if (CountSteppers27674 == 0) CountActives27674 = false; var SetTimeOutPeriods27674 = (Math.abs(CountSteppers27674)-1)*1000 + 990; puti(BackColors27674, ForeColors27674); var dthens27674 = new Date(TargetDates27674); var dnows27674 = new Date("05/11/2025 9:03:20 PM"); if(CountSteppers27674>0) ddiffs27674 = new Date(dnows27674-dthens27674); else ddiffs27674 = new Date(dthens27674-dnows27674); gsecss27674 = Math.floor(ddiffs27674.valueOf()/1000); CountBacks27674(gsecss27674);