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 (LeadingZeros27581 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27581(secs) { if (secs < 0) { document.getElementById("cntdwns27581").innerHTML = FinishMessages27581; return; } DisplayStrs27581 = DisplayFormats27581.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27581 = DisplayStrs27581.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27581 = DisplayStrs27581.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27581 = DisplayStrs27581.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27581").innerHTML = DisplayStrs27581; if (CountActives27581) //alert(SetTimeOutPeriods27581); setTimeout("CountBacks27581(" + (secs+CountSteppers27581) + ")", SetTimeOutPeriods27581); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27581)=="undefined") BackColors27581 = ""; if (typeof(ForeColors27581)=="undefined") ForeColors27581= "white"; if (typeof(TargetDates27581)=="undefined") TargetDates27581 = "09/30/2023 11:00:00 PM"; if (typeof(DisplayFormats27581)=="undefined") DisplayFormats27581 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27581)=="undefined") CountActives27581 = true; if (typeof(FinishMessages27581)=="undefined") FinishMessages27581 = ""; if (typeof(CountSteppers27581)!="number") CountSteppers27581 = -1; if (typeof(LeadingZeros27581)=="undefined") LeadingZeros27581 = true; CountSteppers27581 = Math.ceil(CountSteppers27581); if (CountSteppers27581 == 0) CountActives27581 = false; var SetTimeOutPeriods27581 = (Math.abs(CountSteppers27581)-1)*1000 + 990; puti(BackColors27581, ForeColors27581); var dthens27581 = new Date(TargetDates27581); var dnows27581 = new Date("05/09/2025 10:08:43 AM"); if(CountSteppers27581>0) ddiffs27581 = new Date(dnows27581-dthens27581); else ddiffs27581 = new Date(dthens27581-dnows27581); gsecss27581 = Math.floor(ddiffs27581.valueOf()/1000); CountBacks27581(gsecss27581);