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 (LeadingZeros27449 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27449(secs) { if (secs < 0) { document.getElementById("cntdwns27449").innerHTML = FinishMessages27449; return; } DisplayStrs27449 = DisplayFormats27449.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27449 = DisplayStrs27449.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27449 = DisplayStrs27449.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27449 = DisplayStrs27449.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27449").innerHTML = DisplayStrs27449; if (CountActives27449) //alert(SetTimeOutPeriods27449); setTimeout("CountBacks27449(" + (secs+CountSteppers27449) + ")", SetTimeOutPeriods27449); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27449)=="undefined") BackColors27449 = ""; if (typeof(ForeColors27449)=="undefined") ForeColors27449= "white"; if (typeof(TargetDates27449)=="undefined") TargetDates27449 = "04/01/2023 11:00:00 PM"; if (typeof(DisplayFormats27449)=="undefined") DisplayFormats27449 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27449)=="undefined") CountActives27449 = true; if (typeof(FinishMessages27449)=="undefined") FinishMessages27449 = ""; if (typeof(CountSteppers27449)!="number") CountSteppers27449 = -1; if (typeof(LeadingZeros27449)=="undefined") LeadingZeros27449 = true; CountSteppers27449 = Math.ceil(CountSteppers27449); if (CountSteppers27449 == 0) CountActives27449 = false; var SetTimeOutPeriods27449 = (Math.abs(CountSteppers27449)-1)*1000 + 990; puti(BackColors27449, ForeColors27449); var dthens27449 = new Date(TargetDates27449); var dnows27449 = new Date("05/13/2025 7:55:26 AM"); if(CountSteppers27449>0) ddiffs27449 = new Date(dnows27449-dthens27449); else ddiffs27449 = new Date(dthens27449-dnows27449); gsecss27449 = Math.floor(ddiffs27449.valueOf()/1000); CountBacks27449(gsecss27449);