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 (LeadingZeros27694 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27694(secs) { if (secs < 0) { document.getElementById("cntdwns27694").innerHTML = FinishMessages27694; return; } DisplayStrs27694 = DisplayFormats27694.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27694 = DisplayStrs27694.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27694 = DisplayStrs27694.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27694 = DisplayStrs27694.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27694").innerHTML = DisplayStrs27694; if (CountActives27694) //alert(SetTimeOutPeriods27694); setTimeout("CountBacks27694(" + (secs+CountSteppers27694) + ")", SetTimeOutPeriods27694); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27694)=="undefined") BackColors27694 = ""; if (typeof(ForeColors27694)=="undefined") ForeColors27694= "white"; if (typeof(TargetDates27694)=="undefined") TargetDates27694 = "03/26/2023 11:00:00 PM"; if (typeof(DisplayFormats27694)=="undefined") DisplayFormats27694 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27694)=="undefined") CountActives27694 = true; if (typeof(FinishMessages27694)=="undefined") FinishMessages27694 = ""; if (typeof(CountSteppers27694)!="number") CountSteppers27694 = -1; if (typeof(LeadingZeros27694)=="undefined") LeadingZeros27694 = true; CountSteppers27694 = Math.ceil(CountSteppers27694); if (CountSteppers27694 == 0) CountActives27694 = false; var SetTimeOutPeriods27694 = (Math.abs(CountSteppers27694)-1)*1000 + 990; puti(BackColors27694, ForeColors27694); var dthens27694 = new Date(TargetDates27694); var dnows27694 = new Date("05/13/2025 12:00:17 PM"); if(CountSteppers27694>0) ddiffs27694 = new Date(dnows27694-dthens27694); else ddiffs27694 = new Date(dthens27694-dnows27694); gsecss27694 = Math.floor(ddiffs27694.valueOf()/1000); CountBacks27694(gsecss27694);