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 (LeadingZeros33060 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33060(secs) { if (secs < 0) { document.getElementById("cntdwns33060").innerHTML = FinishMessages33060; return; } DisplayStrs33060 = DisplayFormats33060.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33060 = DisplayStrs33060.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33060 = DisplayStrs33060.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33060 = DisplayStrs33060.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33060").innerHTML = DisplayStrs33060; if (CountActives33060) //alert(SetTimeOutPeriods33060); setTimeout("CountBacks33060(" + (secs+CountSteppers33060) + ")", SetTimeOutPeriods33060); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33060)=="undefined") BackColors33060 = ""; if (typeof(ForeColors33060)=="undefined") ForeColors33060= "white"; if (typeof(TargetDates33060)=="undefined") TargetDates33060 = "11/25/2025 10:00:00 PM"; if (typeof(DisplayFormats33060)=="undefined") DisplayFormats33060 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33060)=="undefined") CountActives33060 = true; if (typeof(FinishMessages33060)=="undefined") FinishMessages33060 = ""; if (typeof(CountSteppers33060)!="number") CountSteppers33060 = -1; if (typeof(LeadingZeros33060)=="undefined") LeadingZeros33060 = true; CountSteppers33060 = Math.ceil(CountSteppers33060); if (CountSteppers33060 == 0) CountActives33060 = false; var SetTimeOutPeriods33060 = (Math.abs(CountSteppers33060)-1)*1000 + 990; puti(BackColors33060, ForeColors33060); var dthens33060 = new Date(TargetDates33060); var dnows33060 = new Date("11/23/2025 8:06:01 PM"); if(CountSteppers33060>0) ddiffs33060 = new Date(dnows33060-dthens33060); else ddiffs33060 = new Date(dthens33060-dnows33060); gsecss33060 = Math.floor(ddiffs33060.valueOf()/1000); CountBacks33060(gsecss33060);