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 (LeadingZeros33164 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33164(secs) { if (secs < 0) { document.getElementById("cntdwns33164").innerHTML = FinishMessages33164; return; } DisplayStrs33164 = DisplayFormats33164.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33164 = DisplayStrs33164.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33164 = DisplayStrs33164.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33164 = DisplayStrs33164.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33164").innerHTML = DisplayStrs33164; if (CountActives33164) //alert(SetTimeOutPeriods33164); setTimeout("CountBacks33164(" + (secs+CountSteppers33164) + ")", SetTimeOutPeriods33164); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33164)=="undefined") BackColors33164 = ""; if (typeof(ForeColors33164)=="undefined") ForeColors33164= "white"; if (typeof(TargetDates33164)=="undefined") TargetDates33164 = "12/07/2025 10:00:00 PM"; if (typeof(DisplayFormats33164)=="undefined") DisplayFormats33164 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33164)=="undefined") CountActives33164 = true; if (typeof(FinishMessages33164)=="undefined") FinishMessages33164 = ""; if (typeof(CountSteppers33164)!="number") CountSteppers33164 = -1; if (typeof(LeadingZeros33164)=="undefined") LeadingZeros33164 = true; CountSteppers33164 = Math.ceil(CountSteppers33164); if (CountSteppers33164 == 0) CountActives33164 = false; var SetTimeOutPeriods33164 = (Math.abs(CountSteppers33164)-1)*1000 + 990; puti(BackColors33164, ForeColors33164); var dthens33164 = new Date(TargetDates33164); var dnows33164 = new Date("12/04/2025 11:29:02 AM"); if(CountSteppers33164>0) ddiffs33164 = new Date(dnows33164-dthens33164); else ddiffs33164 = new Date(dthens33164-dnows33164); gsecss33164 = Math.floor(ddiffs33164.valueOf()/1000); CountBacks33164(gsecss33164);