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 (LeadingZeros33666 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33666(secs) { if (secs < 0) { document.getElementById("cntdwns33666").innerHTML = FinishMessages33666; return; } DisplayStrs33666 = DisplayFormats33666.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33666 = DisplayStrs33666.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33666 = DisplayStrs33666.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33666 = DisplayStrs33666.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33666").innerHTML = DisplayStrs33666; if (CountActives33666) //alert(SetTimeOutPeriods33666); setTimeout("CountBacks33666(" + (secs+CountSteppers33666) + ")", SetTimeOutPeriods33666); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33666)=="undefined") BackColors33666 = ""; if (typeof(ForeColors33666)=="undefined") ForeColors33666= "white"; if (typeof(TargetDates33666)=="undefined") TargetDates33666 = "04/22/2026 11:00:00 PM"; if (typeof(DisplayFormats33666)=="undefined") DisplayFormats33666 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33666)=="undefined") CountActives33666 = true; if (typeof(FinishMessages33666)=="undefined") FinishMessages33666 = ""; if (typeof(CountSteppers33666)!="number") CountSteppers33666 = -1; if (typeof(LeadingZeros33666)=="undefined") LeadingZeros33666 = true; CountSteppers33666 = Math.ceil(CountSteppers33666); if (CountSteppers33666 == 0) CountActives33666 = false; var SetTimeOutPeriods33666 = (Math.abs(CountSteppers33666)-1)*1000 + 990; puti(BackColors33666, ForeColors33666); var dthens33666 = new Date(TargetDates33666); var dnows33666 = new Date("04/20/2026 3:52:50 AM"); if(CountSteppers33666>0) ddiffs33666 = new Date(dnows33666-dthens33666); else ddiffs33666 = new Date(dthens33666-dnows33666); gsecss33666 = Math.floor(ddiffs33666.valueOf()/1000); CountBacks33666(gsecss33666);