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 (LeadingZeros27668 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27668(secs) { if (secs < 0) { document.getElementById("cntdwns27668").innerHTML = FinishMessages27668; return; } DisplayStrs27668 = DisplayFormats27668.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27668 = DisplayStrs27668.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27668 = DisplayStrs27668.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27668 = DisplayStrs27668.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27668").innerHTML = DisplayStrs27668; if (CountActives27668) //alert(SetTimeOutPeriods27668); setTimeout("CountBacks27668(" + (secs+CountSteppers27668) + ")", SetTimeOutPeriods27668); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27668)=="undefined") BackColors27668 = ""; if (typeof(ForeColors27668)=="undefined") ForeColors27668= "white"; if (typeof(TargetDates27668)=="undefined") TargetDates27668 = "03/25/2023 10:00:00 PM"; if (typeof(DisplayFormats27668)=="undefined") DisplayFormats27668 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27668)=="undefined") CountActives27668 = true; if (typeof(FinishMessages27668)=="undefined") FinishMessages27668 = ""; if (typeof(CountSteppers27668)!="number") CountSteppers27668 = -1; if (typeof(LeadingZeros27668)=="undefined") LeadingZeros27668 = true; CountSteppers27668 = Math.ceil(CountSteppers27668); if (CountSteppers27668 == 0) CountActives27668 = false; var SetTimeOutPeriods27668 = (Math.abs(CountSteppers27668)-1)*1000 + 990; puti(BackColors27668, ForeColors27668); var dthens27668 = new Date(TargetDates27668); var dnows27668 = new Date("05/13/2025 7:56:16 AM"); if(CountSteppers27668>0) ddiffs27668 = new Date(dnows27668-dthens27668); else ddiffs27668 = new Date(dthens27668-dnows27668); gsecss27668 = Math.floor(ddiffs27668.valueOf()/1000); CountBacks27668(gsecss27668);