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 (LeadingZeros27633 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27633(secs) { if (secs < 0) { document.getElementById("cntdwns27633").innerHTML = FinishMessages27633; return; } DisplayStrs27633 = DisplayFormats27633.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27633 = DisplayStrs27633.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27633 = DisplayStrs27633.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27633 = DisplayStrs27633.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27633").innerHTML = DisplayStrs27633; if (CountActives27633) //alert(SetTimeOutPeriods27633); setTimeout("CountBacks27633(" + (secs+CountSteppers27633) + ")", SetTimeOutPeriods27633); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27633)=="undefined") BackColors27633 = ""; if (typeof(ForeColors27633)=="undefined") ForeColors27633= "white"; if (typeof(TargetDates27633)=="undefined") TargetDates27633 = "03/27/2023 11:00:00 PM"; if (typeof(DisplayFormats27633)=="undefined") DisplayFormats27633 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27633)=="undefined") CountActives27633 = true; if (typeof(FinishMessages27633)=="undefined") FinishMessages27633 = ""; if (typeof(CountSteppers27633)!="number") CountSteppers27633 = -1; if (typeof(LeadingZeros27633)=="undefined") LeadingZeros27633 = true; CountSteppers27633 = Math.ceil(CountSteppers27633); if (CountSteppers27633 == 0) CountActives27633 = false; var SetTimeOutPeriods27633 = (Math.abs(CountSteppers27633)-1)*1000 + 990; puti(BackColors27633, ForeColors27633); var dthens27633 = new Date(TargetDates27633); var dnows27633 = new Date("05/14/2025 2:46:46 PM"); if(CountSteppers27633>0) ddiffs27633 = new Date(dnows27633-dthens27633); else ddiffs27633 = new Date(dthens27633-dnows27633); gsecss27633 = Math.floor(ddiffs27633.valueOf()/1000); CountBacks27633(gsecss27633);