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 (LeadingZeros29494 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29494(secs) { if (secs < 0) { document.getElementById("cntdwns29494").innerHTML = FinishMessages29494; return; } DisplayStrs29494 = DisplayFormats29494.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29494 = DisplayStrs29494.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29494 = DisplayStrs29494.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29494 = DisplayStrs29494.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29494").innerHTML = DisplayStrs29494; if (CountActives29494) //alert(SetTimeOutPeriods29494); setTimeout("CountBacks29494(" + (secs+CountSteppers29494) + ")", SetTimeOutPeriods29494); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29494)=="undefined") BackColors29494 = ""; if (typeof(ForeColors29494)=="undefined") ForeColors29494= "white"; if (typeof(TargetDates29494)=="undefined") TargetDates29494 = "12/10/2023 10:00:00 PM"; if (typeof(DisplayFormats29494)=="undefined") DisplayFormats29494 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29494)=="undefined") CountActives29494 = true; if (typeof(FinishMessages29494)=="undefined") FinishMessages29494 = ""; if (typeof(CountSteppers29494)!="number") CountSteppers29494 = -1; if (typeof(LeadingZeros29494)=="undefined") LeadingZeros29494 = true; CountSteppers29494 = Math.ceil(CountSteppers29494); if (CountSteppers29494 == 0) CountActives29494 = false; var SetTimeOutPeriods29494 = (Math.abs(CountSteppers29494)-1)*1000 + 990; puti(BackColors29494, ForeColors29494); var dthens29494 = new Date(TargetDates29494); var dnows29494 = new Date("05/09/2025 10:07:49 AM"); if(CountSteppers29494>0) ddiffs29494 = new Date(dnows29494-dthens29494); else ddiffs29494 = new Date(dthens29494-dnows29494); gsecss29494 = Math.floor(ddiffs29494.valueOf()/1000); CountBacks29494(gsecss29494);