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 (LeadingZeros33715 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33715(secs) { if (secs < 0) { document.getElementById("cntdwns33715").innerHTML = FinishMessages33715; return; } DisplayStrs33715 = DisplayFormats33715.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33715 = DisplayStrs33715.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33715 = DisplayStrs33715.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33715 = DisplayStrs33715.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33715").innerHTML = DisplayStrs33715; if (CountActives33715) //alert(SetTimeOutPeriods33715); setTimeout("CountBacks33715(" + (secs+CountSteppers33715) + ")", SetTimeOutPeriods33715); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33715)=="undefined") BackColors33715 = ""; if (typeof(ForeColors33715)=="undefined") ForeColors33715= "white"; if (typeof(TargetDates33715)=="undefined") TargetDates33715 = "04/11/2026 11:00:00 PM"; if (typeof(DisplayFormats33715)=="undefined") DisplayFormats33715 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33715)=="undefined") CountActives33715 = true; if (typeof(FinishMessages33715)=="undefined") FinishMessages33715 = ""; if (typeof(CountSteppers33715)!="number") CountSteppers33715 = -1; if (typeof(LeadingZeros33715)=="undefined") LeadingZeros33715 = true; CountSteppers33715 = Math.ceil(CountSteppers33715); if (CountSteppers33715 == 0) CountActives33715 = false; var SetTimeOutPeriods33715 = (Math.abs(CountSteppers33715)-1)*1000 + 990; puti(BackColors33715, ForeColors33715); var dthens33715 = new Date(TargetDates33715); var dnows33715 = new Date("04/09/2026 7:30:34 PM"); if(CountSteppers33715>0) ddiffs33715 = new Date(dnows33715-dthens33715); else ddiffs33715 = new Date(dthens33715-dnows33715); gsecss33715 = Math.floor(ddiffs33715.valueOf()/1000); CountBacks33715(gsecss33715);