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 (LeadingZeros27782 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27782(secs) { if (secs < 0) { document.getElementById("cntdwns27782").innerHTML = FinishMessages27782; return; } DisplayStrs27782 = DisplayFormats27782.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27782 = DisplayStrs27782.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27782 = DisplayStrs27782.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27782 = DisplayStrs27782.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27782").innerHTML = DisplayStrs27782; if (CountActives27782) //alert(SetTimeOutPeriods27782); setTimeout("CountBacks27782(" + (secs+CountSteppers27782) + ")", SetTimeOutPeriods27782); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27782)=="undefined") BackColors27782 = ""; if (typeof(ForeColors27782)=="undefined") ForeColors27782= "white"; if (typeof(TargetDates27782)=="undefined") TargetDates27782 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormats27782)=="undefined") DisplayFormats27782 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27782)=="undefined") CountActives27782 = true; if (typeof(FinishMessages27782)=="undefined") FinishMessages27782 = ""; if (typeof(CountSteppers27782)!="number") CountSteppers27782 = -1; if (typeof(LeadingZeros27782)=="undefined") LeadingZeros27782 = true; CountSteppers27782 = Math.ceil(CountSteppers27782); if (CountSteppers27782 == 0) CountActives27782 = false; var SetTimeOutPeriods27782 = (Math.abs(CountSteppers27782)-1)*1000 + 990; puti(BackColors27782, ForeColors27782); var dthens27782 = new Date(TargetDates27782); var dnows27782 = new Date("05/13/2025 7:59:36 AM"); if(CountSteppers27782>0) ddiffs27782 = new Date(dnows27782-dthens27782); else ddiffs27782 = new Date(dthens27782-dnows27782); gsecss27782 = Math.floor(ddiffs27782.valueOf()/1000); CountBacks27782(gsecss27782);