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 (LeadingZeros33733 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33733(secs) { if (secs < 0) { document.getElementById("cntdwns33733").innerHTML = FinishMessages33733; return; } DisplayStrs33733 = DisplayFormats33733.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33733 = DisplayStrs33733.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33733 = DisplayStrs33733.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33733 = DisplayStrs33733.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33733").innerHTML = DisplayStrs33733; if (CountActives33733) //alert(SetTimeOutPeriods33733); setTimeout("CountBacks33733(" + (secs+CountSteppers33733) + ")", SetTimeOutPeriods33733); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33733)=="undefined") BackColors33733 = ""; if (typeof(ForeColors33733)=="undefined") ForeColors33733= "white"; if (typeof(TargetDates33733)=="undefined") TargetDates33733 = "04/05/2026 11:00:00 PM"; if (typeof(DisplayFormats33733)=="undefined") DisplayFormats33733 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33733)=="undefined") CountActives33733 = true; if (typeof(FinishMessages33733)=="undefined") FinishMessages33733 = ""; if (typeof(CountSteppers33733)!="number") CountSteppers33733 = -1; if (typeof(LeadingZeros33733)=="undefined") LeadingZeros33733 = true; CountSteppers33733 = Math.ceil(CountSteppers33733); if (CountSteppers33733 == 0) CountActives33733 = false; var SetTimeOutPeriods33733 = (Math.abs(CountSteppers33733)-1)*1000 + 990; puti(BackColors33733, ForeColors33733); var dthens33733 = new Date(TargetDates33733); var dnows33733 = new Date("04/02/2026 5:12:13 PM"); if(CountSteppers33733>0) ddiffs33733 = new Date(dnows33733-dthens33733); else ddiffs33733 = new Date(dthens33733-dnows33733); gsecss33733 = Math.floor(ddiffs33733.valueOf()/1000); CountBacks33733(gsecss33733);