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 (LeadingZeros31025 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31025(secs) { if (secs < 0) { document.getElementById("cntdwns31025").innerHTML = FinishMessages31025; return; } DisplayStrs31025 = DisplayFormats31025.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31025 = DisplayStrs31025.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31025 = DisplayStrs31025.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31025 = DisplayStrs31025.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31025").innerHTML = DisplayStrs31025; if (CountActives31025) //alert(SetTimeOutPeriods31025); setTimeout("CountBacks31025(" + (secs+CountSteppers31025) + ")", SetTimeOutPeriods31025); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31025)=="undefined") BackColors31025 = ""; if (typeof(ForeColors31025)=="undefined") ForeColors31025= "white"; if (typeof(TargetDates31025)=="undefined") TargetDates31025 = "11/17/2024 9:00:00 PM"; if (typeof(DisplayFormats31025)=="undefined") DisplayFormats31025 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31025)=="undefined") CountActives31025 = true; if (typeof(FinishMessages31025)=="undefined") FinishMessages31025 = ""; if (typeof(CountSteppers31025)!="number") CountSteppers31025 = -1; if (typeof(LeadingZeros31025)=="undefined") LeadingZeros31025 = true; CountSteppers31025 = Math.ceil(CountSteppers31025); if (CountSteppers31025 == 0) CountActives31025 = false; var SetTimeOutPeriods31025 = (Math.abs(CountSteppers31025)-1)*1000 + 990; puti(BackColors31025, ForeColors31025); var dthens31025 = new Date(TargetDates31025); var dnows31025 = new Date("11/15/2024 3:14:11 AM"); if(CountSteppers31025>0) ddiffs31025 = new Date(dnows31025-dthens31025); else ddiffs31025 = new Date(dthens31025-dnows31025); gsecss31025 = Math.floor(ddiffs31025.valueOf()/1000); CountBacks31025(gsecss31025);