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 (LeadingZeros33086 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33086(secs) { if (secs < 0) { document.getElementById("cntdwns33086").innerHTML = FinishMessages33086; return; } DisplayStrs33086 = DisplayFormats33086.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33086 = DisplayStrs33086.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33086 = DisplayStrs33086.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33086 = DisplayStrs33086.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33086").innerHTML = DisplayStrs33086; if (CountActives33086) //alert(SetTimeOutPeriods33086); setTimeout("CountBacks33086(" + (secs+CountSteppers33086) + ")", SetTimeOutPeriods33086); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33086)=="undefined") BackColors33086 = ""; if (typeof(ForeColors33086)=="undefined") ForeColors33086= "white"; if (typeof(TargetDates33086)=="undefined") TargetDates33086 = "11/17/2025 10:00:00 PM"; if (typeof(DisplayFormats33086)=="undefined") DisplayFormats33086 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33086)=="undefined") CountActives33086 = true; if (typeof(FinishMessages33086)=="undefined") FinishMessages33086 = ""; if (typeof(CountSteppers33086)!="number") CountSteppers33086 = -1; if (typeof(LeadingZeros33086)=="undefined") LeadingZeros33086 = true; CountSteppers33086 = Math.ceil(CountSteppers33086); if (CountSteppers33086 == 0) CountActives33086 = false; var SetTimeOutPeriods33086 = (Math.abs(CountSteppers33086)-1)*1000 + 990; puti(BackColors33086, ForeColors33086); var dthens33086 = new Date(TargetDates33086); var dnows33086 = new Date("11/14/2025 8:40:17 PM"); if(CountSteppers33086>0) ddiffs33086 = new Date(dnows33086-dthens33086); else ddiffs33086 = new Date(dthens33086-dnows33086); gsecss33086 = Math.floor(ddiffs33086.valueOf()/1000); CountBacks33086(gsecss33086);