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 (LeadingZeros29511 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29511(secs) { if (secs < 0) { document.getElementById("cntdwns29511").innerHTML = FinishMessages29511; return; } DisplayStrs29511 = DisplayFormats29511.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29511 = DisplayStrs29511.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29511 = DisplayStrs29511.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29511 = DisplayStrs29511.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29511").innerHTML = DisplayStrs29511; if (CountActives29511) //alert(SetTimeOutPeriods29511); setTimeout("CountBacks29511(" + (secs+CountSteppers29511) + ")", SetTimeOutPeriods29511); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29511)=="undefined") BackColors29511 = ""; if (typeof(ForeColors29511)=="undefined") ForeColors29511= "white"; if (typeof(TargetDates29511)=="undefined") TargetDates29511 = "12/04/2023 10:00:00 PM"; if (typeof(DisplayFormats29511)=="undefined") DisplayFormats29511 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29511)=="undefined") CountActives29511 = true; if (typeof(FinishMessages29511)=="undefined") FinishMessages29511 = ""; if (typeof(CountSteppers29511)!="number") CountSteppers29511 = -1; if (typeof(LeadingZeros29511)=="undefined") LeadingZeros29511 = true; CountSteppers29511 = Math.ceil(CountSteppers29511); if (CountSteppers29511 == 0) CountActives29511 = false; var SetTimeOutPeriods29511 = (Math.abs(CountSteppers29511)-1)*1000 + 990; puti(BackColors29511, ForeColors29511); var dthens29511 = new Date(TargetDates29511); var dnows29511 = new Date("05/09/2025 6:39:54 AM"); if(CountSteppers29511>0) ddiffs29511 = new Date(dnows29511-dthens29511); else ddiffs29511 = new Date(dthens29511-dnows29511); gsecss29511 = Math.floor(ddiffs29511.valueOf()/1000); CountBacks29511(gsecss29511);