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 (LeadingZeros27535 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27535(secs) { if (secs < 0) { document.getElementById("cntdwns27535").innerHTML = FinishMessages27535; return; } DisplayStrs27535 = DisplayFormats27535.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27535 = DisplayStrs27535.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27535 = DisplayStrs27535.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27535 = DisplayStrs27535.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27535").innerHTML = DisplayStrs27535; if (CountActives27535) //alert(SetTimeOutPeriods27535); setTimeout("CountBacks27535(" + (secs+CountSteppers27535) + ")", SetTimeOutPeriods27535); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27535)=="undefined") BackColors27535 = ""; if (typeof(ForeColors27535)=="undefined") ForeColors27535= "white"; if (typeof(TargetDates27535)=="undefined") TargetDates27535 = "06/01/2023 11:00:00 PM"; if (typeof(DisplayFormats27535)=="undefined") DisplayFormats27535 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27535)=="undefined") CountActives27535 = true; if (typeof(FinishMessages27535)=="undefined") FinishMessages27535 = ""; if (typeof(CountSteppers27535)!="number") CountSteppers27535 = -1; if (typeof(LeadingZeros27535)=="undefined") LeadingZeros27535 = true; CountSteppers27535 = Math.ceil(CountSteppers27535); if (CountSteppers27535 == 0) CountActives27535 = false; var SetTimeOutPeriods27535 = (Math.abs(CountSteppers27535)-1)*1000 + 990; puti(BackColors27535, ForeColors27535); var dthens27535 = new Date(TargetDates27535); var dnows27535 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers27535>0) ddiffs27535 = new Date(dnows27535-dthens27535); else ddiffs27535 = new Date(dthens27535-dnows27535); gsecss27535 = Math.floor(ddiffs27535.valueOf()/1000); CountBacks27535(gsecss27535);