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 (LeadingZeros33855 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33855(secs) { if (secs < 0) { document.getElementById("cntdwns33855").innerHTML = FinishMessages33855; return; } DisplayStrs33855 = DisplayFormats33855.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33855 = DisplayStrs33855.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33855 = DisplayStrs33855.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33855 = DisplayStrs33855.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33855").innerHTML = DisplayStrs33855; if (CountActives33855) //alert(SetTimeOutPeriods33855); setTimeout("CountBacks33855(" + (secs+CountSteppers33855) + ")", SetTimeOutPeriods33855); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33855)=="undefined") BackColors33855 = ""; if (typeof(ForeColors33855)=="undefined") ForeColors33855= "white"; if (typeof(TargetDates33855)=="undefined") TargetDates33855 = "05/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33855)=="undefined") DisplayFormats33855 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33855)=="undefined") CountActives33855 = true; if (typeof(FinishMessages33855)=="undefined") FinishMessages33855 = ""; if (typeof(CountSteppers33855)!="number") CountSteppers33855 = -1; if (typeof(LeadingZeros33855)=="undefined") LeadingZeros33855 = true; CountSteppers33855 = Math.ceil(CountSteppers33855); if (CountSteppers33855 == 0) CountActives33855 = false; var SetTimeOutPeriods33855 = (Math.abs(CountSteppers33855)-1)*1000 + 990; puti(BackColors33855, ForeColors33855); var dthens33855 = new Date(TargetDates33855); var dnows33855 = new Date("05/18/2026 7:28:33 PM"); if(CountSteppers33855>0) ddiffs33855 = new Date(dnows33855-dthens33855); else ddiffs33855 = new Date(dthens33855-dnows33855); gsecss33855 = Math.floor(ddiffs33855.valueOf()/1000); CountBacks33855(gsecss33855);