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 (LeadingZeros33027 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33027(secs) { if (secs < 0) { document.getElementById("cntdwns33027").innerHTML = FinishMessages33027; return; } DisplayStrs33027 = DisplayFormats33027.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33027 = DisplayStrs33027.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33027 = DisplayStrs33027.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33027 = DisplayStrs33027.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33027").innerHTML = DisplayStrs33027; if (CountActives33027) //alert(SetTimeOutPeriods33027); setTimeout("CountBacks33027(" + (secs+CountSteppers33027) + ")", SetTimeOutPeriods33027); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33027)=="undefined") BackColors33027 = ""; if (typeof(ForeColors33027)=="undefined") ForeColors33027= "white"; if (typeof(TargetDates33027)=="undefined") TargetDates33027 = "12/03/2025 10:00:00 PM"; if (typeof(DisplayFormats33027)=="undefined") DisplayFormats33027 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33027)=="undefined") CountActives33027 = true; if (typeof(FinishMessages33027)=="undefined") FinishMessages33027 = ""; if (typeof(CountSteppers33027)!="number") CountSteppers33027 = -1; if (typeof(LeadingZeros33027)=="undefined") LeadingZeros33027 = true; CountSteppers33027 = Math.ceil(CountSteppers33027); if (CountSteppers33027 == 0) CountActives33027 = false; var SetTimeOutPeriods33027 = (Math.abs(CountSteppers33027)-1)*1000 + 990; puti(BackColors33027, ForeColors33027); var dthens33027 = new Date(TargetDates33027); var dnows33027 = new Date("12/01/2025 6:08:05 PM"); if(CountSteppers33027>0) ddiffs33027 = new Date(dnows33027-dthens33027); else ddiffs33027 = new Date(dthens33027-dnows33027); gsecss33027 = Math.floor(ddiffs33027.valueOf()/1000); CountBacks33027(gsecss33027);