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 (LeadingZeros27778 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27778(secs) { if (secs < 0) { document.getElementById("cntdwns27778").innerHTML = FinishMessages27778; return; } DisplayStrs27778 = DisplayFormats27778.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27778 = DisplayStrs27778.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27778 = DisplayStrs27778.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27778 = DisplayStrs27778.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27778").innerHTML = DisplayStrs27778; if (CountActives27778) //alert(SetTimeOutPeriods27778); setTimeout("CountBacks27778(" + (secs+CountSteppers27778) + ")", SetTimeOutPeriods27778); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27778)=="undefined") BackColors27778 = ""; if (typeof(ForeColors27778)=="undefined") ForeColors27778= "white"; if (typeof(TargetDates27778)=="undefined") TargetDates27778 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27778)=="undefined") DisplayFormats27778 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27778)=="undefined") CountActives27778 = true; if (typeof(FinishMessages27778)=="undefined") FinishMessages27778 = ""; if (typeof(CountSteppers27778)!="number") CountSteppers27778 = -1; if (typeof(LeadingZeros27778)=="undefined") LeadingZeros27778 = true; CountSteppers27778 = Math.ceil(CountSteppers27778); if (CountSteppers27778 == 0) CountActives27778 = false; var SetTimeOutPeriods27778 = (Math.abs(CountSteppers27778)-1)*1000 + 990; puti(BackColors27778, ForeColors27778); var dthens27778 = new Date(TargetDates27778); var dnows27778 = new Date("05/13/2025 4:23:18 AM"); if(CountSteppers27778>0) ddiffs27778 = new Date(dnows27778-dthens27778); else ddiffs27778 = new Date(dthens27778-dnows27778); gsecss27778 = Math.floor(ddiffs27778.valueOf()/1000); CountBacks27778(gsecss27778);