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 (LeadingZeros33373 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33373(secs) { if (secs < 0) { document.getElementById("cntdwns33373").innerHTML = FinishMessages33373; return; } DisplayStrs33373 = DisplayFormats33373.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33373 = DisplayStrs33373.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33373 = DisplayStrs33373.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33373 = DisplayStrs33373.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33373").innerHTML = DisplayStrs33373; if (CountActives33373) //alert(SetTimeOutPeriods33373); setTimeout("CountBacks33373(" + (secs+CountSteppers33373) + ")", SetTimeOutPeriods33373); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33373)=="undefined") BackColors33373 = ""; if (typeof(ForeColors33373)=="undefined") ForeColors33373= "white"; if (typeof(TargetDates33373)=="undefined") TargetDates33373 = "03/03/2026 10:00:00 PM"; if (typeof(DisplayFormats33373)=="undefined") DisplayFormats33373 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33373)=="undefined") CountActives33373 = true; if (typeof(FinishMessages33373)=="undefined") FinishMessages33373 = ""; if (typeof(CountSteppers33373)!="number") CountSteppers33373 = -1; if (typeof(LeadingZeros33373)=="undefined") LeadingZeros33373 = true; CountSteppers33373 = Math.ceil(CountSteppers33373); if (CountSteppers33373 == 0) CountActives33373 = false; var SetTimeOutPeriods33373 = (Math.abs(CountSteppers33373)-1)*1000 + 990; puti(BackColors33373, ForeColors33373); var dthens33373 = new Date(TargetDates33373); var dnows33373 = new Date("03/01/2026 5:45:05 PM"); if(CountSteppers33373>0) ddiffs33373 = new Date(dnows33373-dthens33373); else ddiffs33373 = new Date(dthens33373-dnows33373); gsecss33373 = Math.floor(ddiffs33373.valueOf()/1000); CountBacks33373(gsecss33373);