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 (LeadingZeros33205 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33205(secs) { if (secs < 0) { document.getElementById("cntdwns33205").innerHTML = FinishMessages33205; return; } DisplayStrs33205 = DisplayFormats33205.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33205 = DisplayStrs33205.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33205 = DisplayStrs33205.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33205 = DisplayStrs33205.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33205").innerHTML = DisplayStrs33205; if (CountActives33205) //alert(SetTimeOutPeriods33205); setTimeout("CountBacks33205(" + (secs+CountSteppers33205) + ")", SetTimeOutPeriods33205); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33205)=="undefined") BackColors33205 = ""; if (typeof(ForeColors33205)=="undefined") ForeColors33205= "white"; if (typeof(TargetDates33205)=="undefined") TargetDates33205 = "12/09/2025 10:00:00 PM"; if (typeof(DisplayFormats33205)=="undefined") DisplayFormats33205 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33205)=="undefined") CountActives33205 = true; if (typeof(FinishMessages33205)=="undefined") FinishMessages33205 = ""; if (typeof(CountSteppers33205)!="number") CountSteppers33205 = -1; if (typeof(LeadingZeros33205)=="undefined") LeadingZeros33205 = true; CountSteppers33205 = Math.ceil(CountSteppers33205); if (CountSteppers33205 == 0) CountActives33205 = false; var SetTimeOutPeriods33205 = (Math.abs(CountSteppers33205)-1)*1000 + 990; puti(BackColors33205, ForeColors33205); var dthens33205 = new Date(TargetDates33205); var dnows33205 = new Date("12/07/2025 5:33:36 PM"); if(CountSteppers33205>0) ddiffs33205 = new Date(dnows33205-dthens33205); else ddiffs33205 = new Date(dthens33205-dnows33205); gsecss33205 = Math.floor(ddiffs33205.valueOf()/1000); CountBacks33205(gsecss33205);