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 (LeadingZeros33299 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33299(secs) { if (secs < 0) { document.getElementById("cntdwns33299").innerHTML = FinishMessages33299; return; } DisplayStrs33299 = DisplayFormats33299.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33299 = DisplayStrs33299.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33299 = DisplayStrs33299.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33299 = DisplayStrs33299.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33299").innerHTML = DisplayStrs33299; if (CountActives33299) //alert(SetTimeOutPeriods33299); setTimeout("CountBacks33299(" + (secs+CountSteppers33299) + ")", SetTimeOutPeriods33299); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33299)=="undefined") BackColors33299 = ""; if (typeof(ForeColors33299)=="undefined") ForeColors33299= "white"; if (typeof(TargetDates33299)=="undefined") TargetDates33299 = "02/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33299)=="undefined") DisplayFormats33299 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33299)=="undefined") CountActives33299 = true; if (typeof(FinishMessages33299)=="undefined") FinishMessages33299 = ""; if (typeof(CountSteppers33299)!="number") CountSteppers33299 = -1; if (typeof(LeadingZeros33299)=="undefined") LeadingZeros33299 = true; CountSteppers33299 = Math.ceil(CountSteppers33299); if (CountSteppers33299 == 0) CountActives33299 = false; var SetTimeOutPeriods33299 = (Math.abs(CountSteppers33299)-1)*1000 + 990; puti(BackColors33299, ForeColors33299); var dthens33299 = new Date(TargetDates33299); var dnows33299 = new Date("02/01/2026 9:33:24 AM"); if(CountSteppers33299>0) ddiffs33299 = new Date(dnows33299-dthens33299); else ddiffs33299 = new Date(dthens33299-dnows33299); gsecss33299 = Math.floor(ddiffs33299.valueOf()/1000); CountBacks33299(gsecss33299);