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 (LeadingZeros33123 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33123(secs) { if (secs < 0) { document.getElementById("cntdwns33123").innerHTML = FinishMessages33123; return; } DisplayStrs33123 = DisplayFormats33123.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33123 = DisplayStrs33123.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33123 = DisplayStrs33123.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33123 = DisplayStrs33123.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33123").innerHTML = DisplayStrs33123; if (CountActives33123) //alert(SetTimeOutPeriods33123); setTimeout("CountBacks33123(" + (secs+CountSteppers33123) + ")", SetTimeOutPeriods33123); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33123)=="undefined") BackColors33123 = ""; if (typeof(ForeColors33123)=="undefined") ForeColors33123= "white"; if (typeof(TargetDates33123)=="undefined") TargetDates33123 = "12/08/2025 10:00:00 PM"; if (typeof(DisplayFormats33123)=="undefined") DisplayFormats33123 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33123)=="undefined") CountActives33123 = true; if (typeof(FinishMessages33123)=="undefined") FinishMessages33123 = ""; if (typeof(CountSteppers33123)!="number") CountSteppers33123 = -1; if (typeof(LeadingZeros33123)=="undefined") LeadingZeros33123 = true; CountSteppers33123 = Math.ceil(CountSteppers33123); if (CountSteppers33123 == 0) CountActives33123 = false; var SetTimeOutPeriods33123 = (Math.abs(CountSteppers33123)-1)*1000 + 990; puti(BackColors33123, ForeColors33123); var dthens33123 = new Date(TargetDates33123); var dnows33123 = new Date("12/06/2025 3:04:55 PM"); if(CountSteppers33123>0) ddiffs33123 = new Date(dnows33123-dthens33123); else ddiffs33123 = new Date(dthens33123-dnows33123); gsecss33123 = Math.floor(ddiffs33123.valueOf()/1000); CountBacks33123(gsecss33123);