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 (LeadingZeros33672 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33672(secs) { if (secs < 0) { document.getElementById("cntdwns33672").innerHTML = FinishMessages33672; return; } DisplayStrs33672 = DisplayFormats33672.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33672 = DisplayStrs33672.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33672 = DisplayStrs33672.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33672 = DisplayStrs33672.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33672").innerHTML = DisplayStrs33672; if (CountActives33672) //alert(SetTimeOutPeriods33672); setTimeout("CountBacks33672(" + (secs+CountSteppers33672) + ")", SetTimeOutPeriods33672); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33672)=="undefined") BackColors33672 = ""; if (typeof(ForeColors33672)=="undefined") ForeColors33672= "white"; if (typeof(TargetDates33672)=="undefined") TargetDates33672 = "04/06/2026 11:00:00 PM"; if (typeof(DisplayFormats33672)=="undefined") DisplayFormats33672 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33672)=="undefined") CountActives33672 = true; if (typeof(FinishMessages33672)=="undefined") FinishMessages33672 = ""; if (typeof(CountSteppers33672)!="number") CountSteppers33672 = -1; if (typeof(LeadingZeros33672)=="undefined") LeadingZeros33672 = true; CountSteppers33672 = Math.ceil(CountSteppers33672); if (CountSteppers33672 == 0) CountActives33672 = false; var SetTimeOutPeriods33672 = (Math.abs(CountSteppers33672)-1)*1000 + 990; puti(BackColors33672, ForeColors33672); var dthens33672 = new Date(TargetDates33672); var dnows33672 = new Date("04/03/2026 3:57:03 PM"); if(CountSteppers33672>0) ddiffs33672 = new Date(dnows33672-dthens33672); else ddiffs33672 = new Date(dthens33672-dnows33672); gsecss33672 = Math.floor(ddiffs33672.valueOf()/1000); CountBacks33672(gsecss33672);