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 (LeadingZeros33785 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33785(secs) { if (secs < 0) { document.getElementById("cntdwns33785").innerHTML = FinishMessages33785; return; } DisplayStrs33785 = DisplayFormats33785.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33785 = DisplayStrs33785.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33785 = DisplayStrs33785.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33785 = DisplayStrs33785.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33785").innerHTML = DisplayStrs33785; if (CountActives33785) //alert(SetTimeOutPeriods33785); setTimeout("CountBacks33785(" + (secs+CountSteppers33785) + ")", SetTimeOutPeriods33785); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33785)=="undefined") BackColors33785 = ""; if (typeof(ForeColors33785)=="undefined") ForeColors33785= "white"; if (typeof(TargetDates33785)=="undefined") TargetDates33785 = "05/03/2026 10:00:00 PM"; if (typeof(DisplayFormats33785)=="undefined") DisplayFormats33785 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33785)=="undefined") CountActives33785 = true; if (typeof(FinishMessages33785)=="undefined") FinishMessages33785 = ""; if (typeof(CountSteppers33785)!="number") CountSteppers33785 = -1; if (typeof(LeadingZeros33785)=="undefined") LeadingZeros33785 = true; CountSteppers33785 = Math.ceil(CountSteppers33785); if (CountSteppers33785 == 0) CountActives33785 = false; var SetTimeOutPeriods33785 = (Math.abs(CountSteppers33785)-1)*1000 + 990; puti(BackColors33785, ForeColors33785); var dthens33785 = new Date(TargetDates33785); var dnows33785 = new Date("04/30/2026 9:11:50 PM"); if(CountSteppers33785>0) ddiffs33785 = new Date(dnows33785-dthens33785); else ddiffs33785 = new Date(dthens33785-dnows33785); gsecss33785 = Math.floor(ddiffs33785.valueOf()/1000); CountBacks33785(gsecss33785);