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 (LeadingZeros33010 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33010(secs) { if (secs < 0) { document.getElementById("cntdwns33010").innerHTML = FinishMessages33010; return; } DisplayStrs33010 = DisplayFormats33010.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33010 = DisplayStrs33010.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33010 = DisplayStrs33010.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33010 = DisplayStrs33010.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33010").innerHTML = DisplayStrs33010; if (CountActives33010) //alert(SetTimeOutPeriods33010); setTimeout("CountBacks33010(" + (secs+CountSteppers33010) + ")", SetTimeOutPeriods33010); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33010)=="undefined") BackColors33010 = ""; if (typeof(ForeColors33010)=="undefined") ForeColors33010= "white"; if (typeof(TargetDates33010)=="undefined") TargetDates33010 = "10/28/2025 10:00:00 PM"; if (typeof(DisplayFormats33010)=="undefined") DisplayFormats33010 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33010)=="undefined") CountActives33010 = true; if (typeof(FinishMessages33010)=="undefined") FinishMessages33010 = ""; if (typeof(CountSteppers33010)!="number") CountSteppers33010 = -1; if (typeof(LeadingZeros33010)=="undefined") LeadingZeros33010 = true; CountSteppers33010 = Math.ceil(CountSteppers33010); if (CountSteppers33010 == 0) CountActives33010 = false; var SetTimeOutPeriods33010 = (Math.abs(CountSteppers33010)-1)*1000 + 990; puti(BackColors33010, ForeColors33010); var dthens33010 = new Date(TargetDates33010); var dnows33010 = new Date("10/25/2025 7:00:37 AM"); if(CountSteppers33010>0) ddiffs33010 = new Date(dnows33010-dthens33010); else ddiffs33010 = new Date(dthens33010-dnows33010); gsecss33010 = Math.floor(ddiffs33010.valueOf()/1000); CountBacks33010(gsecss33010);