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 (LeadingZeros27963 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks27963(secs) { if (secs < 0) { document.getElementById("cntdwns27963").innerHTML = FinishMessages27963; return; } DisplayStrs27963 = DisplayFormats27963.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs27963 = DisplayStrs27963.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs27963 = DisplayStrs27963.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs27963 = DisplayStrs27963.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns27963").innerHTML = DisplayStrs27963; if (CountActives27963) //alert(SetTimeOutPeriods27963); setTimeout("CountBacks27963(" + (secs+CountSteppers27963) + ")", SetTimeOutPeriods27963); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors27963)=="undefined") BackColors27963 = ""; if (typeof(ForeColors27963)=="undefined") ForeColors27963= "white"; if (typeof(TargetDates27963)=="undefined") TargetDates27963 = "04/04/2023 11:00:00 PM"; if (typeof(DisplayFormats27963)=="undefined") DisplayFormats27963 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives27963)=="undefined") CountActives27963 = true; if (typeof(FinishMessages27963)=="undefined") FinishMessages27963 = ""; if (typeof(CountSteppers27963)!="number") CountSteppers27963 = -1; if (typeof(LeadingZeros27963)=="undefined") LeadingZeros27963 = true; CountSteppers27963 = Math.ceil(CountSteppers27963); if (CountSteppers27963 == 0) CountActives27963 = false; var SetTimeOutPeriods27963 = (Math.abs(CountSteppers27963)-1)*1000 + 990; puti(BackColors27963, ForeColors27963); var dthens27963 = new Date(TargetDates27963); var dnows27963 = new Date("05/13/2025 8:05:36 AM"); if(CountSteppers27963>0) ddiffs27963 = new Date(dnows27963-dthens27963); else ddiffs27963 = new Date(dthens27963-dnows27963); gsecss27963 = Math.floor(ddiffs27963.valueOf()/1000); CountBacks27963(gsecss27963);