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 (LeadingZeros29034 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29034(secs) { if (secs < 0) { document.getElementById("cntdwns29034").innerHTML = FinishMessages29034; return; } DisplayStrs29034 = DisplayFormats29034.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29034 = DisplayStrs29034.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29034 = DisplayStrs29034.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29034 = DisplayStrs29034.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29034").innerHTML = DisplayStrs29034; if (CountActives29034) //alert(SetTimeOutPeriods29034); setTimeout("CountBacks29034(" + (secs+CountSteppers29034) + ")", SetTimeOutPeriods29034); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29034)=="undefined") BackColors29034 = ""; if (typeof(ForeColors29034)=="undefined") ForeColors29034= "white"; if (typeof(TargetDates29034)=="undefined") TargetDates29034 = "12/03/2023 9:00:00 PM"; if (typeof(DisplayFormats29034)=="undefined") DisplayFormats29034 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29034)=="undefined") CountActives29034 = true; if (typeof(FinishMessages29034)=="undefined") FinishMessages29034 = ""; if (typeof(CountSteppers29034)!="number") CountSteppers29034 = -1; if (typeof(LeadingZeros29034)=="undefined") LeadingZeros29034 = true; CountSteppers29034 = Math.ceil(CountSteppers29034); if (CountSteppers29034 == 0) CountActives29034 = false; var SetTimeOutPeriods29034 = (Math.abs(CountSteppers29034)-1)*1000 + 990; puti(BackColors29034, ForeColors29034); var dthens29034 = new Date(TargetDates29034); var dnows29034 = new Date("05/10/2025 10:48:37 AM"); if(CountSteppers29034>0) ddiffs29034 = new Date(dnows29034-dthens29034); else ddiffs29034 = new Date(dthens29034-dnows29034); gsecss29034 = Math.floor(ddiffs29034.valueOf()/1000); CountBacks29034(gsecss29034);