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 (LeadingZeros33158 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33158(secs) { if (secs < 0) { document.getElementById("cntdwns33158").innerHTML = FinishMessages33158; return; } DisplayStrs33158 = DisplayFormats33158.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33158 = DisplayStrs33158.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33158 = DisplayStrs33158.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33158 = DisplayStrs33158.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33158").innerHTML = DisplayStrs33158; if (CountActives33158) //alert(SetTimeOutPeriods33158); setTimeout("CountBacks33158(" + (secs+CountSteppers33158) + ")", SetTimeOutPeriods33158); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33158)=="undefined") BackColors33158 = ""; if (typeof(ForeColors33158)=="undefined") ForeColors33158= "white"; if (typeof(TargetDates33158)=="undefined") TargetDates33158 = "12/01/2025 10:00:00 PM"; if (typeof(DisplayFormats33158)=="undefined") DisplayFormats33158 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33158)=="undefined") CountActives33158 = true; if (typeof(FinishMessages33158)=="undefined") FinishMessages33158 = ""; if (typeof(CountSteppers33158)!="number") CountSteppers33158 = -1; if (typeof(LeadingZeros33158)=="undefined") LeadingZeros33158 = true; CountSteppers33158 = Math.ceil(CountSteppers33158); if (CountSteppers33158 == 0) CountActives33158 = false; var SetTimeOutPeriods33158 = (Math.abs(CountSteppers33158)-1)*1000 + 990; puti(BackColors33158, ForeColors33158); var dthens33158 = new Date(TargetDates33158); var dnows33158 = new Date("11/29/2025 10:00:45 AM"); if(CountSteppers33158>0) ddiffs33158 = new Date(dnows33158-dthens33158); else ddiffs33158 = new Date(dthens33158-dnows33158); gsecss33158 = Math.floor(ddiffs33158.valueOf()/1000); CountBacks33158(gsecss33158);