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 (LeadingZeros33059 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33059(secs) { if (secs < 0) { document.getElementById("cntdwns33059").innerHTML = FinishMessages33059; return; } DisplayStrs33059 = DisplayFormats33059.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33059 = DisplayStrs33059.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33059 = DisplayStrs33059.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33059 = DisplayStrs33059.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33059").innerHTML = DisplayStrs33059; if (CountActives33059) //alert(SetTimeOutPeriods33059); setTimeout("CountBacks33059(" + (secs+CountSteppers33059) + ")", SetTimeOutPeriods33059); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33059)=="undefined") BackColors33059 = ""; if (typeof(ForeColors33059)=="undefined") ForeColors33059= "white"; if (typeof(TargetDates33059)=="undefined") TargetDates33059 = "11/25/2025 10:00:00 PM"; if (typeof(DisplayFormats33059)=="undefined") DisplayFormats33059 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33059)=="undefined") CountActives33059 = true; if (typeof(FinishMessages33059)=="undefined") FinishMessages33059 = ""; if (typeof(CountSteppers33059)!="number") CountSteppers33059 = -1; if (typeof(LeadingZeros33059)=="undefined") LeadingZeros33059 = true; CountSteppers33059 = Math.ceil(CountSteppers33059); if (CountSteppers33059 == 0) CountActives33059 = false; var SetTimeOutPeriods33059 = (Math.abs(CountSteppers33059)-1)*1000 + 990; puti(BackColors33059, ForeColors33059); var dthens33059 = new Date(TargetDates33059); var dnows33059 = new Date("11/23/2025 8:06:01 PM"); if(CountSteppers33059>0) ddiffs33059 = new Date(dnows33059-dthens33059); else ddiffs33059 = new Date(dthens33059-dnows33059); gsecss33059 = Math.floor(ddiffs33059.valueOf()/1000); CountBacks33059(gsecss33059);