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 (LeadingZeros27128 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27128(secs) { if (secs < 0) { document.getElementById("cntdwns27128").innerHTML = FinishMessages27128; return; } DisplayStrs27128 = DisplayFormats27128.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27128 = DisplayStrs27128.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27128 = DisplayStrs27128.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27128 = DisplayStrs27128.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27128").innerHTML = DisplayStrs27128; if (CountActives27128) //alert(SetTimeOutPeriods27128); setTimeout("CountBacks27128(" + (secs+CountSteppers27128) + ")", SetTimeOutPeriods27128); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27128)=="undefined") BackColors27128 = ""; if (typeof(ForeColors27128)=="undefined") ForeColors27128= "white"; if (typeof(TargetDates27128)=="undefined") TargetDates27128 = "06/02/2023 10:00:00 PM"; if (typeof(DisplayFormats27128)=="undefined") DisplayFormats27128 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27128)=="undefined") CountActives27128 = true; if (typeof(FinishMessages27128)=="undefined") FinishMessages27128 = ""; if (typeof(CountSteppers27128)!="number") CountSteppers27128 = -1; if (typeof(LeadingZeros27128)=="undefined") LeadingZeros27128 = true; CountSteppers27128 = Math.ceil(CountSteppers27128); if (CountSteppers27128 == 0) CountActives27128 = false; var SetTimeOutPeriods27128 = (Math.abs(CountSteppers27128)-1)*1000 + 990; puti(BackColors27128, ForeColors27128); var dthens27128 = new Date(TargetDates27128); var dnows27128 = new Date("05/11/2025 9:01:58 PM"); if(CountSteppers27128>0) ddiffs27128 = new Date(dnows27128-dthens27128); else ddiffs27128 = new Date(dthens27128-dnows27128); gsecss27128 = Math.floor(ddiffs27128.valueOf()/1000); CountBacks27128(gsecss27128);