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 (LeadingZeros29267 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29267(secs) { if (secs < 0) { document.getElementById("cntdwns29267").innerHTML = FinishMessages29267; return; } DisplayStrs29267 = DisplayFormats29267.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29267 = DisplayStrs29267.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29267 = DisplayStrs29267.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29267 = DisplayStrs29267.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29267").innerHTML = DisplayStrs29267; if (CountActives29267) //alert(SetTimeOutPeriods29267); setTimeout("CountBacks29267(" + (secs+CountSteppers29267) + ")", SetTimeOutPeriods29267); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29267)=="undefined") BackColors29267 = ""; if (typeof(ForeColors29267)=="undefined") ForeColors29267= "white"; if (typeof(TargetDates29267)=="undefined") TargetDates29267 = "12/10/2023 9:00:00 PM"; if (typeof(DisplayFormats29267)=="undefined") DisplayFormats29267 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29267)=="undefined") CountActives29267 = true; if (typeof(FinishMessages29267)=="undefined") FinishMessages29267 = ""; if (typeof(CountSteppers29267)!="number") CountSteppers29267 = -1; if (typeof(LeadingZeros29267)=="undefined") LeadingZeros29267 = true; CountSteppers29267 = Math.ceil(CountSteppers29267); if (CountSteppers29267 == 0) CountActives29267 = false; var SetTimeOutPeriods29267 = (Math.abs(CountSteppers29267)-1)*1000 + 990; puti(BackColors29267, ForeColors29267); var dthens29267 = new Date(TargetDates29267); var dnows29267 = new Date("05/11/2025 10:55:59 AM"); if(CountSteppers29267>0) ddiffs29267 = new Date(dnows29267-dthens29267); else ddiffs29267 = new Date(dthens29267-dnows29267); gsecss29267 = Math.floor(ddiffs29267.valueOf()/1000); CountBacks29267(gsecss29267);