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 (LeadingZeros33898 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33898(secs) { if (secs < 0) { document.getElementById("cntdwns33898").innerHTML = FinishMessages33898; return; } DisplayStrs33898 = DisplayFormats33898.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33898 = DisplayStrs33898.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33898 = DisplayStrs33898.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33898 = DisplayStrs33898.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33898").innerHTML = DisplayStrs33898; if (CountActives33898) //alert(SetTimeOutPeriods33898); setTimeout("CountBacks33898(" + (secs+CountSteppers33898) + ")", SetTimeOutPeriods33898); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33898)=="undefined") BackColors33898 = ""; if (typeof(ForeColors33898)=="undefined") ForeColors33898= "white"; if (typeof(TargetDates33898)=="undefined") TargetDates33898 = "05/06/2026 10:00:00 PM"; if (typeof(DisplayFormats33898)=="undefined") DisplayFormats33898 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33898)=="undefined") CountActives33898 = true; if (typeof(FinishMessages33898)=="undefined") FinishMessages33898 = ""; if (typeof(CountSteppers33898)!="number") CountSteppers33898 = -1; if (typeof(LeadingZeros33898)=="undefined") LeadingZeros33898 = true; CountSteppers33898 = Math.ceil(CountSteppers33898); if (CountSteppers33898 == 0) CountActives33898 = false; var SetTimeOutPeriods33898 = (Math.abs(CountSteppers33898)-1)*1000 + 990; puti(BackColors33898, ForeColors33898); var dthens33898 = new Date(TargetDates33898); var dnows33898 = new Date("05/04/2026 10:29:51 PM"); if(CountSteppers33898>0) ddiffs33898 = new Date(dnows33898-dthens33898); else ddiffs33898 = new Date(dthens33898-dnows33898); gsecss33898 = Math.floor(ddiffs33898.valueOf()/1000); CountBacks33898(gsecss33898);