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 (LeadingZeros29308 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29308(secs) { if (secs < 0) { document.getElementById("cntdwns29308").innerHTML = FinishMessages29308; return; } DisplayStrs29308 = DisplayFormats29308.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29308 = DisplayStrs29308.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29308 = DisplayStrs29308.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29308 = DisplayStrs29308.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29308").innerHTML = DisplayStrs29308; if (CountActives29308) //alert(SetTimeOutPeriods29308); setTimeout("CountBacks29308(" + (secs+CountSteppers29308) + ")", SetTimeOutPeriods29308); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29308)=="undefined") BackColors29308 = ""; if (typeof(ForeColors29308)=="undefined") ForeColors29308= "white"; if (typeof(TargetDates29308)=="undefined") TargetDates29308 = "12/11/2023 9:00:00 PM"; if (typeof(DisplayFormats29308)=="undefined") DisplayFormats29308 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29308)=="undefined") CountActives29308 = true; if (typeof(FinishMessages29308)=="undefined") FinishMessages29308 = ""; if (typeof(CountSteppers29308)!="number") CountSteppers29308 = -1; if (typeof(LeadingZeros29308)=="undefined") LeadingZeros29308 = true; CountSteppers29308 = Math.ceil(CountSteppers29308); if (CountSteppers29308 == 0) CountActives29308 = false; var SetTimeOutPeriods29308 = (Math.abs(CountSteppers29308)-1)*1000 + 990; puti(BackColors29308, ForeColors29308); var dthens29308 = new Date(TargetDates29308); var dnows29308 = new Date("05/11/2025 2:14:16 PM"); if(CountSteppers29308>0) ddiffs29308 = new Date(dnows29308-dthens29308); else ddiffs29308 = new Date(dthens29308-dnows29308); gsecss29308 = Math.floor(ddiffs29308.valueOf()/1000); CountBacks29308(gsecss29308);