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 (LeadingZeros29562 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29562(secs) { if (secs < 0) { document.getElementById("cntdwns29562").innerHTML = FinishMessages29562; return; } DisplayStrs29562 = DisplayFormats29562.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29562 = DisplayStrs29562.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29562 = DisplayStrs29562.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29562 = DisplayStrs29562.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29562").innerHTML = DisplayStrs29562; if (CountActives29562) //alert(SetTimeOutPeriods29562); setTimeout("CountBacks29562(" + (secs+CountSteppers29562) + ")", SetTimeOutPeriods29562); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29562)=="undefined") BackColors29562 = ""; if (typeof(ForeColors29562)=="undefined") ForeColors29562= "white"; if (typeof(TargetDates29562)=="undefined") TargetDates29562 = "12/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29562)=="undefined") DisplayFormats29562 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29562)=="undefined") CountActives29562 = true; if (typeof(FinishMessages29562)=="undefined") FinishMessages29562 = ""; if (typeof(CountSteppers29562)!="number") CountSteppers29562 = -1; if (typeof(LeadingZeros29562)=="undefined") LeadingZeros29562 = true; CountSteppers29562 = Math.ceil(CountSteppers29562); if (CountSteppers29562 == 0) CountActives29562 = false; var SetTimeOutPeriods29562 = (Math.abs(CountSteppers29562)-1)*1000 + 990; puti(BackColors29562, ForeColors29562); var dthens29562 = new Date(TargetDates29562); var dnows29562 = new Date("05/11/2025 10:57:20 AM"); if(CountSteppers29562>0) ddiffs29562 = new Date(dnows29562-dthens29562); else ddiffs29562 = new Date(dthens29562-dnows29562); gsecss29562 = Math.floor(ddiffs29562.valueOf()/1000); CountBacks29562(gsecss29562);