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 (LeadingZeros27672 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27672(secs) { if (secs < 0) { document.getElementById("cntdwns27672").innerHTML = FinishMessages27672; return; } DisplayStrs27672 = DisplayFormats27672.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27672 = DisplayStrs27672.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27672 = DisplayStrs27672.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27672 = DisplayStrs27672.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27672").innerHTML = DisplayStrs27672; if (CountActives27672) //alert(SetTimeOutPeriods27672); setTimeout("CountBacks27672(" + (secs+CountSteppers27672) + ")", SetTimeOutPeriods27672); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27672)=="undefined") BackColors27672 = ""; if (typeof(ForeColors27672)=="undefined") ForeColors27672= "white"; if (typeof(TargetDates27672)=="undefined") TargetDates27672 = "06/05/2023 11:00:00 PM"; if (typeof(DisplayFormats27672)=="undefined") DisplayFormats27672 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27672)=="undefined") CountActives27672 = true; if (typeof(FinishMessages27672)=="undefined") FinishMessages27672 = ""; if (typeof(CountSteppers27672)!="number") CountSteppers27672 = -1; if (typeof(LeadingZeros27672)=="undefined") LeadingZeros27672 = true; CountSteppers27672 = Math.ceil(CountSteppers27672); if (CountSteppers27672 == 0) CountActives27672 = false; var SetTimeOutPeriods27672 = (Math.abs(CountSteppers27672)-1)*1000 + 990; puti(BackColors27672, ForeColors27672); var dthens27672 = new Date(TargetDates27672); var dnows27672 = new Date("05/11/2025 9:01:58 PM"); if(CountSteppers27672>0) ddiffs27672 = new Date(dnows27672-dthens27672); else ddiffs27672 = new Date(dthens27672-dnows27672); gsecss27672 = Math.floor(ddiffs27672.valueOf()/1000); CountBacks27672(gsecss27672);