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 (LeadingZeros29369 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29369(secs) { if (secs < 0) { document.getElementById("cntdwns29369").innerHTML = FinishMessages29369; return; } DisplayStrs29369 = DisplayFormats29369.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29369 = DisplayStrs29369.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29369 = DisplayStrs29369.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29369 = DisplayStrs29369.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29369").innerHTML = DisplayStrs29369; if (CountActives29369) //alert(SetTimeOutPeriods29369); setTimeout("CountBacks29369(" + (secs+CountSteppers29369) + ")", SetTimeOutPeriods29369); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29369)=="undefined") BackColors29369 = ""; if (typeof(ForeColors29369)=="undefined") ForeColors29369= "white"; if (typeof(TargetDates29369)=="undefined") TargetDates29369 = "12/09/2023 9:00:00 PM"; if (typeof(DisplayFormats29369)=="undefined") DisplayFormats29369 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29369)=="undefined") CountActives29369 = true; if (typeof(FinishMessages29369)=="undefined") FinishMessages29369 = ""; if (typeof(CountSteppers29369)!="number") CountSteppers29369 = -1; if (typeof(LeadingZeros29369)=="undefined") LeadingZeros29369 = true; CountSteppers29369 = Math.ceil(CountSteppers29369); if (CountSteppers29369 == 0) CountActives29369 = false; var SetTimeOutPeriods29369 = (Math.abs(CountSteppers29369)-1)*1000 + 990; puti(BackColors29369, ForeColors29369); var dthens29369 = new Date(TargetDates29369); var dnows29369 = new Date("05/09/2025 10:06:56 AM"); if(CountSteppers29369>0) ddiffs29369 = new Date(dnows29369-dthens29369); else ddiffs29369 = new Date(dthens29369-dnows29369); gsecss29369 = Math.floor(ddiffs29369.valueOf()/1000); CountBacks29369(gsecss29369);