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 (LeadingZeros33206 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33206(secs) { if (secs < 0) { document.getElementById("cntdwns33206").innerHTML = FinishMessages33206; return; } DisplayStrs33206 = DisplayFormats33206.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33206 = DisplayStrs33206.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33206 = DisplayStrs33206.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33206 = DisplayStrs33206.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33206").innerHTML = DisplayStrs33206; if (CountActives33206) //alert(SetTimeOutPeriods33206); setTimeout("CountBacks33206(" + (secs+CountSteppers33206) + ")", SetTimeOutPeriods33206); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33206)=="undefined") BackColors33206 = ""; if (typeof(ForeColors33206)=="undefined") ForeColors33206= "white"; if (typeof(TargetDates33206)=="undefined") TargetDates33206 = "12/15/2025 10:00:00 PM"; if (typeof(DisplayFormats33206)=="undefined") DisplayFormats33206 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33206)=="undefined") CountActives33206 = true; if (typeof(FinishMessages33206)=="undefined") FinishMessages33206 = ""; if (typeof(CountSteppers33206)!="number") CountSteppers33206 = -1; if (typeof(LeadingZeros33206)=="undefined") LeadingZeros33206 = true; CountSteppers33206 = Math.ceil(CountSteppers33206); if (CountSteppers33206 == 0) CountActives33206 = false; var SetTimeOutPeriods33206 = (Math.abs(CountSteppers33206)-1)*1000 + 990; puti(BackColors33206, ForeColors33206); var dthens33206 = new Date(TargetDates33206); var dnows33206 = new Date("12/15/2025 5:14:44 PM"); if(CountSteppers33206>0) ddiffs33206 = new Date(dnows33206-dthens33206); else ddiffs33206 = new Date(dthens33206-dnows33206); gsecss33206 = Math.floor(ddiffs33206.valueOf()/1000); CountBacks33206(gsecss33206);