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 (LeadingZeros33727 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33727(secs) { if (secs < 0) { document.getElementById("cntdwns33727").innerHTML = FinishMessages33727; return; } DisplayStrs33727 = DisplayFormats33727.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33727 = DisplayStrs33727.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33727 = DisplayStrs33727.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33727 = DisplayStrs33727.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33727").innerHTML = DisplayStrs33727; if (CountActives33727) //alert(SetTimeOutPeriods33727); setTimeout("CountBacks33727(" + (secs+CountSteppers33727) + ")", SetTimeOutPeriods33727); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33727)=="undefined") BackColors33727 = ""; if (typeof(ForeColors33727)=="undefined") ForeColors33727= "white"; if (typeof(TargetDates33727)=="undefined") TargetDates33727 = "04/04/2026 11:00:00 PM"; if (typeof(DisplayFormats33727)=="undefined") DisplayFormats33727 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33727)=="undefined") CountActives33727 = true; if (typeof(FinishMessages33727)=="undefined") FinishMessages33727 = ""; if (typeof(CountSteppers33727)!="number") CountSteppers33727 = -1; if (typeof(LeadingZeros33727)=="undefined") LeadingZeros33727 = true; CountSteppers33727 = Math.ceil(CountSteppers33727); if (CountSteppers33727 == 0) CountActives33727 = false; var SetTimeOutPeriods33727 = (Math.abs(CountSteppers33727)-1)*1000 + 990; puti(BackColors33727, ForeColors33727); var dthens33727 = new Date(TargetDates33727); var dnows33727 = new Date("04/02/2026 11:22:25 PM"); if(CountSteppers33727>0) ddiffs33727 = new Date(dnows33727-dthens33727); else ddiffs33727 = new Date(dthens33727-dnows33727); gsecss33727 = Math.floor(ddiffs33727.valueOf()/1000); CountBacks33727(gsecss33727);