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 (LeadingZeros33215 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33215(secs) { if (secs < 0) { document.getElementById("cntdwns33215").innerHTML = FinishMessages33215; return; } DisplayStrs33215 = DisplayFormats33215.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33215 = DisplayStrs33215.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33215 = DisplayStrs33215.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33215 = DisplayStrs33215.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33215").innerHTML = DisplayStrs33215; if (CountActives33215) //alert(SetTimeOutPeriods33215); setTimeout("CountBacks33215(" + (secs+CountSteppers33215) + ")", SetTimeOutPeriods33215); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33215)=="undefined") BackColors33215 = ""; if (typeof(ForeColors33215)=="undefined") ForeColors33215= "white"; if (typeof(TargetDates33215)=="undefined") TargetDates33215 = "12/11/2025 10:00:00 PM"; if (typeof(DisplayFormats33215)=="undefined") DisplayFormats33215 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33215)=="undefined") CountActives33215 = true; if (typeof(FinishMessages33215)=="undefined") FinishMessages33215 = ""; if (typeof(CountSteppers33215)!="number") CountSteppers33215 = -1; if (typeof(LeadingZeros33215)=="undefined") LeadingZeros33215 = true; CountSteppers33215 = Math.ceil(CountSteppers33215); if (CountSteppers33215 == 0) CountActives33215 = false; var SetTimeOutPeriods33215 = (Math.abs(CountSteppers33215)-1)*1000 + 990; puti(BackColors33215, ForeColors33215); var dthens33215 = new Date(TargetDates33215); var dnows33215 = new Date("12/08/2025 11:17:06 PM"); if(CountSteppers33215>0) ddiffs33215 = new Date(dnows33215-dthens33215); else ddiffs33215 = new Date(dthens33215-dnows33215); gsecss33215 = Math.floor(ddiffs33215.valueOf()/1000); CountBacks33215(gsecss33215);