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 (LeadingZeros29598 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29598(secs) { if (secs < 0) { document.getElementById("cntdwns29598").innerHTML = FinishMessages29598; return; } DisplayStrs29598 = DisplayFormats29598.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29598 = DisplayStrs29598.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29598 = DisplayStrs29598.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29598 = DisplayStrs29598.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29598").innerHTML = DisplayStrs29598; if (CountActives29598) //alert(SetTimeOutPeriods29598); setTimeout("CountBacks29598(" + (secs+CountSteppers29598) + ")", SetTimeOutPeriods29598); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29598)=="undefined") BackColors29598 = ""; if (typeof(ForeColors29598)=="undefined") ForeColors29598= "white"; if (typeof(TargetDates29598)=="undefined") TargetDates29598 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29598)=="undefined") DisplayFormats29598 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29598)=="undefined") CountActives29598 = true; if (typeof(FinishMessages29598)=="undefined") FinishMessages29598 = ""; if (typeof(CountSteppers29598)!="number") CountSteppers29598 = -1; if (typeof(LeadingZeros29598)=="undefined") LeadingZeros29598 = true; CountSteppers29598 = Math.ceil(CountSteppers29598); if (CountSteppers29598 == 0) CountActives29598 = false; var SetTimeOutPeriods29598 = (Math.abs(CountSteppers29598)-1)*1000 + 990; puti(BackColors29598, ForeColors29598); var dthens29598 = new Date(TargetDates29598); var dnows29598 = new Date("05/11/2025 9:00:36 PM"); if(CountSteppers29598>0) ddiffs29598 = new Date(dnows29598-dthens29598); else ddiffs29598 = new Date(dthens29598-dnows29598); gsecss29598 = Math.floor(ddiffs29598.valueOf()/1000); CountBacks29598(gsecss29598);