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 (LeadingZeros29279 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29279(secs) { if (secs < 0) { document.getElementById("cntdwns29279").innerHTML = FinishMessages29279; return; } DisplayStrs29279 = DisplayFormats29279.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29279 = DisplayStrs29279.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29279 = DisplayStrs29279.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29279 = DisplayStrs29279.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29279").innerHTML = DisplayStrs29279; if (CountActives29279) //alert(SetTimeOutPeriods29279); setTimeout("CountBacks29279(" + (secs+CountSteppers29279) + ")", SetTimeOutPeriods29279); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29279)=="undefined") BackColors29279 = ""; if (typeof(ForeColors29279)=="undefined") ForeColors29279= "white"; if (typeof(TargetDates29279)=="undefined") TargetDates29279 = "12/09/2023 9:00:00 PM"; if (typeof(DisplayFormats29279)=="undefined") DisplayFormats29279 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29279)=="undefined") CountActives29279 = true; if (typeof(FinishMessages29279)=="undefined") FinishMessages29279 = ""; if (typeof(CountSteppers29279)!="number") CountSteppers29279 = -1; if (typeof(LeadingZeros29279)=="undefined") LeadingZeros29279 = true; CountSteppers29279 = Math.ceil(CountSteppers29279); if (CountSteppers29279 == 0) CountActives29279 = false; var SetTimeOutPeriods29279 = (Math.abs(CountSteppers29279)-1)*1000 + 990; puti(BackColors29279, ForeColors29279); var dthens29279 = new Date(TargetDates29279); var dnows29279 = new Date("05/11/2025 9:00:35 PM"); if(CountSteppers29279>0) ddiffs29279 = new Date(dnows29279-dthens29279); else ddiffs29279 = new Date(dthens29279-dnows29279); gsecss29279 = Math.floor(ddiffs29279.valueOf()/1000); CountBacks29279(gsecss29279);