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 (LeadingZeros29347 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29347(secs) { if (secs < 0) { document.getElementById("cntdwns29347").innerHTML = FinishMessages29347; return; } DisplayStrs29347 = DisplayFormats29347.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29347 = DisplayStrs29347.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29347 = DisplayStrs29347.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29347 = DisplayStrs29347.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29347").innerHTML = DisplayStrs29347; if (CountActives29347) //alert(SetTimeOutPeriods29347); setTimeout("CountBacks29347(" + (secs+CountSteppers29347) + ")", SetTimeOutPeriods29347); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29347)=="undefined") BackColors29347 = ""; if (typeof(ForeColors29347)=="undefined") ForeColors29347= "white"; if (typeof(TargetDates29347)=="undefined") TargetDates29347 = "12/06/2023 9:00:00 PM"; if (typeof(DisplayFormats29347)=="undefined") DisplayFormats29347 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29347)=="undefined") CountActives29347 = true; if (typeof(FinishMessages29347)=="undefined") FinishMessages29347 = ""; if (typeof(CountSteppers29347)!="number") CountSteppers29347 = -1; if (typeof(LeadingZeros29347)=="undefined") LeadingZeros29347 = true; CountSteppers29347 = Math.ceil(CountSteppers29347); if (CountSteppers29347 == 0) CountActives29347 = false; var SetTimeOutPeriods29347 = (Math.abs(CountSteppers29347)-1)*1000 + 990; puti(BackColors29347, ForeColors29347); var dthens29347 = new Date(TargetDates29347); var dnows29347 = new Date("05/11/2025 10:57:21 AM"); if(CountSteppers29347>0) ddiffs29347 = new Date(dnows29347-dthens29347); else ddiffs29347 = new Date(dthens29347-dnows29347); gsecss29347 = Math.floor(ddiffs29347.valueOf()/1000); CountBacks29347(gsecss29347);