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 (LeadingZeros33011 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33011(secs) { if (secs < 0) { document.getElementById("cntdwns33011").innerHTML = FinishMessages33011; return; } DisplayStrs33011 = DisplayFormats33011.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33011 = DisplayStrs33011.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33011 = DisplayStrs33011.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33011 = DisplayStrs33011.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33011").innerHTML = DisplayStrs33011; if (CountActives33011) //alert(SetTimeOutPeriods33011); setTimeout("CountBacks33011(" + (secs+CountSteppers33011) + ")", SetTimeOutPeriods33011); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33011)=="undefined") BackColors33011 = ""; if (typeof(ForeColors33011)=="undefined") ForeColors33011= "white"; if (typeof(TargetDates33011)=="undefined") TargetDates33011 = "11/06/2025 9:00:00 PM"; if (typeof(DisplayFormats33011)=="undefined") DisplayFormats33011 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33011)=="undefined") CountActives33011 = true; if (typeof(FinishMessages33011)=="undefined") FinishMessages33011 = ""; if (typeof(CountSteppers33011)!="number") CountSteppers33011 = -1; if (typeof(LeadingZeros33011)=="undefined") LeadingZeros33011 = true; CountSteppers33011 = Math.ceil(CountSteppers33011); if (CountSteppers33011 == 0) CountActives33011 = false; var SetTimeOutPeriods33011 = (Math.abs(CountSteppers33011)-1)*1000 + 990; puti(BackColors33011, ForeColors33011); var dthens33011 = new Date(TargetDates33011); var dnows33011 = new Date("11/03/2025 5:55:56 PM"); if(CountSteppers33011>0) ddiffs33011 = new Date(dnows33011-dthens33011); else ddiffs33011 = new Date(dthens33011-dnows33011); gsecss33011 = Math.floor(ddiffs33011.valueOf()/1000); CountBacks33011(gsecss33011);