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 (LeadingZeros29028 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29028(secs) { if (secs < 0) { document.getElementById("cntdwns29028").innerHTML = FinishMessages29028; return; } DisplayStrs29028 = DisplayFormats29028.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29028 = DisplayStrs29028.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29028 = DisplayStrs29028.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29028 = DisplayStrs29028.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29028").innerHTML = DisplayStrs29028; if (CountActives29028) //alert(SetTimeOutPeriods29028); setTimeout("CountBacks29028(" + (secs+CountSteppers29028) + ")", SetTimeOutPeriods29028); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29028)=="undefined") BackColors29028 = ""; if (typeof(ForeColors29028)=="undefined") ForeColors29028= "white"; if (typeof(TargetDates29028)=="undefined") TargetDates29028 = "10/03/2023 10:00:00 PM"; if (typeof(DisplayFormats29028)=="undefined") DisplayFormats29028 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29028)=="undefined") CountActives29028 = true; if (typeof(FinishMessages29028)=="undefined") FinishMessages29028 = ""; if (typeof(CountSteppers29028)!="number") CountSteppers29028 = -1; if (typeof(LeadingZeros29028)=="undefined") LeadingZeros29028 = true; CountSteppers29028 = Math.ceil(CountSteppers29028); if (CountSteppers29028 == 0) CountActives29028 = false; var SetTimeOutPeriods29028 = (Math.abs(CountSteppers29028)-1)*1000 + 990; puti(BackColors29028, ForeColors29028); var dthens29028 = new Date(TargetDates29028); var dnows29028 = new Date("05/09/2025 10:07:49 AM"); if(CountSteppers29028>0) ddiffs29028 = new Date(dnows29028-dthens29028); else ddiffs29028 = new Date(dthens29028-dnows29028); gsecss29028 = Math.floor(ddiffs29028.valueOf()/1000); CountBacks29028(gsecss29028);