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 (LeadingZeros29224 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29224(secs) { if (secs < 0) { document.getElementById("cntdwns29224").innerHTML = FinishMessages29224; return; } DisplayStrs29224 = DisplayFormats29224.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29224 = DisplayStrs29224.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29224 = DisplayStrs29224.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29224 = DisplayStrs29224.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29224").innerHTML = DisplayStrs29224; if (CountActives29224) //alert(SetTimeOutPeriods29224); setTimeout("CountBacks29224(" + (secs+CountSteppers29224) + ")", SetTimeOutPeriods29224); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29224)=="undefined") BackColors29224 = ""; if (typeof(ForeColors29224)=="undefined") ForeColors29224= "white"; if (typeof(TargetDates29224)=="undefined") TargetDates29224 = "10/05/2023 10:00:00 PM"; if (typeof(DisplayFormats29224)=="undefined") DisplayFormats29224 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29224)=="undefined") CountActives29224 = true; if (typeof(FinishMessages29224)=="undefined") FinishMessages29224 = ""; if (typeof(CountSteppers29224)!="number") CountSteppers29224 = -1; if (typeof(LeadingZeros29224)=="undefined") LeadingZeros29224 = true; CountSteppers29224 = Math.ceil(CountSteppers29224); if (CountSteppers29224 == 0) CountActives29224 = false; var SetTimeOutPeriods29224 = (Math.abs(CountSteppers29224)-1)*1000 + 990; puti(BackColors29224, ForeColors29224); var dthens29224 = new Date(TargetDates29224); var dnows29224 = new Date("05/11/2025 10:55:59 AM"); if(CountSteppers29224>0) ddiffs29224 = new Date(dnows29224-dthens29224); else ddiffs29224 = new Date(dthens29224-dnows29224); gsecss29224 = Math.floor(ddiffs29224.valueOf()/1000); CountBacks29224(gsecss29224);