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 (LeadingZeros33012 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33012(secs) { if (secs < 0) { document.getElementById("cntdwns33012").innerHTML = FinishMessages33012; return; } DisplayStrs33012 = DisplayFormats33012.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33012 = DisplayStrs33012.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33012 = DisplayStrs33012.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33012 = DisplayStrs33012.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33012").innerHTML = DisplayStrs33012; if (CountActives33012) //alert(SetTimeOutPeriods33012); setTimeout("CountBacks33012(" + (secs+CountSteppers33012) + ")", SetTimeOutPeriods33012); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33012)=="undefined") BackColors33012 = ""; if (typeof(ForeColors33012)=="undefined") ForeColors33012= "white"; if (typeof(TargetDates33012)=="undefined") TargetDates33012 = "11/26/2025 9:00:00 PM"; if (typeof(DisplayFormats33012)=="undefined") DisplayFormats33012 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33012)=="undefined") CountActives33012 = true; if (typeof(FinishMessages33012)=="undefined") FinishMessages33012 = ""; if (typeof(CountSteppers33012)!="number") CountSteppers33012 = -1; if (typeof(LeadingZeros33012)=="undefined") LeadingZeros33012 = true; CountSteppers33012 = Math.ceil(CountSteppers33012); if (CountSteppers33012 == 0) CountActives33012 = false; var SetTimeOutPeriods33012 = (Math.abs(CountSteppers33012)-1)*1000 + 990; puti(BackColors33012, ForeColors33012); var dthens33012 = new Date(TargetDates33012); var dnows33012 = new Date("11/23/2025 9:46:40 PM"); if(CountSteppers33012>0) ddiffs33012 = new Date(dnows33012-dthens33012); else ddiffs33012 = new Date(dthens33012-dnows33012); gsecss33012 = Math.floor(ddiffs33012.valueOf()/1000); CountBacks33012(gsecss33012);