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 (LeadingZeros27486 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27486(secs) { if (secs < 0) { document.getElementById("cntdwns27486").innerHTML = FinishMessages27486; return; } DisplayStrs27486 = DisplayFormats27486.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27486 = DisplayStrs27486.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27486 = DisplayStrs27486.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27486 = DisplayStrs27486.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27486").innerHTML = DisplayStrs27486; if (CountActives27486) //alert(SetTimeOutPeriods27486); setTimeout("CountBacks27486(" + (secs+CountSteppers27486) + ")", SetTimeOutPeriods27486); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27486)=="undefined") BackColors27486 = ""; if (typeof(ForeColors27486)=="undefined") ForeColors27486= "white"; if (typeof(TargetDates27486)=="undefined") TargetDates27486 = "05/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27486)=="undefined") DisplayFormats27486 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27486)=="undefined") CountActives27486 = true; if (typeof(FinishMessages27486)=="undefined") FinishMessages27486 = ""; if (typeof(CountSteppers27486)!="number") CountSteppers27486 = -1; if (typeof(LeadingZeros27486)=="undefined") LeadingZeros27486 = true; CountSteppers27486 = Math.ceil(CountSteppers27486); if (CountSteppers27486 == 0) CountActives27486 = false; var SetTimeOutPeriods27486 = (Math.abs(CountSteppers27486)-1)*1000 + 990; puti(BackColors27486, ForeColors27486); var dthens27486 = new Date(TargetDates27486); var dnows27486 = new Date("05/11/2025 9:03:19 PM"); if(CountSteppers27486>0) ddiffs27486 = new Date(dnows27486-dthens27486); else ddiffs27486 = new Date(dthens27486-dnows27486); gsecss27486 = Math.floor(ddiffs27486.valueOf()/1000); CountBacks27486(gsecss27486);