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 (LeadingZeros29292 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29292(secs) { if (secs < 0) { document.getElementById("cntdwns29292").innerHTML = FinishMessages29292; return; } DisplayStrs29292 = DisplayFormats29292.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29292 = DisplayStrs29292.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29292 = DisplayStrs29292.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29292 = DisplayStrs29292.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29292").innerHTML = DisplayStrs29292; if (CountActives29292) //alert(SetTimeOutPeriods29292); setTimeout("CountBacks29292(" + (secs+CountSteppers29292) + ")", SetTimeOutPeriods29292); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29292)=="undefined") BackColors29292 = ""; if (typeof(ForeColors29292)=="undefined") ForeColors29292= "white"; if (typeof(TargetDates29292)=="undefined") TargetDates29292 = "12/11/2023 9:00:00 PM"; if (typeof(DisplayFormats29292)=="undefined") DisplayFormats29292 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29292)=="undefined") CountActives29292 = true; if (typeof(FinishMessages29292)=="undefined") FinishMessages29292 = ""; if (typeof(CountSteppers29292)!="number") CountSteppers29292 = -1; if (typeof(LeadingZeros29292)=="undefined") LeadingZeros29292 = true; CountSteppers29292 = Math.ceil(CountSteppers29292); if (CountSteppers29292 == 0) CountActives29292 = false; var SetTimeOutPeriods29292 = (Math.abs(CountSteppers29292)-1)*1000 + 990; puti(BackColors29292, ForeColors29292); var dthens29292 = new Date(TargetDates29292); var dnows29292 = new Date("05/11/2025 7:46:31 AM"); if(CountSteppers29292>0) ddiffs29292 = new Date(dnows29292-dthens29292); else ddiffs29292 = new Date(dthens29292-dnows29292); gsecss29292 = Math.floor(ddiffs29292.valueOf()/1000); CountBacks29292(gsecss29292);