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 (LeadingZeros27949 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27949(secs) { if (secs < 0) { document.getElementById("cntdwns27949").innerHTML = FinishMessages27949; return; } DisplayStrs27949 = DisplayFormats27949.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27949 = DisplayStrs27949.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27949 = DisplayStrs27949.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27949 = DisplayStrs27949.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27949").innerHTML = DisplayStrs27949; if (CountActives27949) //alert(SetTimeOutPeriods27949); setTimeout("CountBacks27949(" + (secs+CountSteppers27949) + ")", SetTimeOutPeriods27949); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27949)=="undefined") BackColors27949 = ""; if (typeof(ForeColors27949)=="undefined") ForeColors27949= "white"; if (typeof(TargetDates27949)=="undefined") TargetDates27949 = "06/13/2023 11:00:00 PM"; if (typeof(DisplayFormats27949)=="undefined") DisplayFormats27949 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27949)=="undefined") CountActives27949 = true; if (typeof(FinishMessages27949)=="undefined") FinishMessages27949 = ""; if (typeof(CountSteppers27949)!="number") CountSteppers27949 = -1; if (typeof(LeadingZeros27949)=="undefined") LeadingZeros27949 = true; CountSteppers27949 = Math.ceil(CountSteppers27949); if (CountSteppers27949 == 0) CountActives27949 = false; var SetTimeOutPeriods27949 = (Math.abs(CountSteppers27949)-1)*1000 + 990; puti(BackColors27949, ForeColors27949); var dthens27949 = new Date(TargetDates27949); var dnows27949 = new Date("05/09/2025 10:11:22 AM"); if(CountSteppers27949>0) ddiffs27949 = new Date(dnows27949-dthens27949); else ddiffs27949 = new Date(dthens27949-dnows27949); gsecss27949 = Math.floor(ddiffs27949.valueOf()/1000); CountBacks27949(gsecss27949);