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 (LeadingZeros27584 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27584(secs) { if (secs < 0) { document.getElementById("cntdwns27584").innerHTML = FinishMessages27584; return; } DisplayStrs27584 = DisplayFormats27584.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27584 = DisplayStrs27584.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27584 = DisplayStrs27584.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27584 = DisplayStrs27584.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27584").innerHTML = DisplayStrs27584; if (CountActives27584) //alert(SetTimeOutPeriods27584); setTimeout("CountBacks27584(" + (secs+CountSteppers27584) + ")", SetTimeOutPeriods27584); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27584)=="undefined") BackColors27584 = ""; if (typeof(ForeColors27584)=="undefined") ForeColors27584= "white"; if (typeof(TargetDates27584)=="undefined") TargetDates27584 = "03/30/2023 10:00:00 PM"; if (typeof(DisplayFormats27584)=="undefined") DisplayFormats27584 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27584)=="undefined") CountActives27584 = true; if (typeof(FinishMessages27584)=="undefined") FinishMessages27584 = ""; if (typeof(CountSteppers27584)!="number") CountSteppers27584 = -1; if (typeof(LeadingZeros27584)=="undefined") LeadingZeros27584 = true; CountSteppers27584 = Math.ceil(CountSteppers27584); if (CountSteppers27584 == 0) CountActives27584 = false; var SetTimeOutPeriods27584 = (Math.abs(CountSteppers27584)-1)*1000 + 990; puti(BackColors27584, ForeColors27584); var dthens27584 = new Date(TargetDates27584); var dnows27584 = new Date("05/13/2025 11:58:56 AM"); if(CountSteppers27584>0) ddiffs27584 = new Date(dnows27584-dthens27584); else ddiffs27584 = new Date(dthens27584-dnows27584); gsecss27584 = Math.floor(ddiffs27584.valueOf()/1000); CountBacks27584(gsecss27584);