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 (LeadingZeros33830 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33830(secs) { if (secs < 0) { document.getElementById("cntdwns33830").innerHTML = FinishMessages33830; return; } DisplayStrs33830 = DisplayFormats33830.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33830 = DisplayStrs33830.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33830 = DisplayStrs33830.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33830 = DisplayStrs33830.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33830").innerHTML = DisplayStrs33830; if (CountActives33830) //alert(SetTimeOutPeriods33830); setTimeout("CountBacks33830(" + (secs+CountSteppers33830) + ")", SetTimeOutPeriods33830); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33830)=="undefined") BackColors33830 = ""; if (typeof(ForeColors33830)=="undefined") ForeColors33830= "white"; if (typeof(TargetDates33830)=="undefined") TargetDates33830 = "04/04/2026 10:00:00 PM"; if (typeof(DisplayFormats33830)=="undefined") DisplayFormats33830 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33830)=="undefined") CountActives33830 = true; if (typeof(FinishMessages33830)=="undefined") FinishMessages33830 = ""; if (typeof(CountSteppers33830)!="number") CountSteppers33830 = -1; if (typeof(LeadingZeros33830)=="undefined") LeadingZeros33830 = true; CountSteppers33830 = Math.ceil(CountSteppers33830); if (CountSteppers33830 == 0) CountActives33830 = false; var SetTimeOutPeriods33830 = (Math.abs(CountSteppers33830)-1)*1000 + 990; puti(BackColors33830, ForeColors33830); var dthens33830 = new Date(TargetDates33830); var dnows33830 = new Date("04/01/2026 11:23:03 PM"); if(CountSteppers33830>0) ddiffs33830 = new Date(dnows33830-dthens33830); else ddiffs33830 = new Date(dthens33830-dnows33830); gsecss33830 = Math.floor(ddiffs33830.valueOf()/1000); CountBacks33830(gsecss33830);