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 (LeadingZeros34000 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34000(secs) { if (secs < 0) { document.getElementById("cntdwns34000").innerHTML = FinishMessages34000; return; } DisplayStrs34000 = DisplayFormats34000.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34000 = DisplayStrs34000.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34000 = DisplayStrs34000.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34000 = DisplayStrs34000.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34000").innerHTML = DisplayStrs34000; if (CountActives34000) //alert(SetTimeOutPeriods34000); setTimeout("CountBacks34000(" + (secs+CountSteppers34000) + ")", SetTimeOutPeriods34000); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34000)=="undefined") BackColors34000 = ""; if (typeof(ForeColors34000)=="undefined") ForeColors34000= "white"; if (typeof(TargetDates34000)=="undefined") TargetDates34000 = "06/25/2026 10:00:00 PM"; if (typeof(DisplayFormats34000)=="undefined") DisplayFormats34000 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34000)=="undefined") CountActives34000 = true; if (typeof(FinishMessages34000)=="undefined") FinishMessages34000 = ""; if (typeof(CountSteppers34000)!="number") CountSteppers34000 = -1; if (typeof(LeadingZeros34000)=="undefined") LeadingZeros34000 = true; CountSteppers34000 = Math.ceil(CountSteppers34000); if (CountSteppers34000 == 0) CountActives34000 = false; var SetTimeOutPeriods34000 = (Math.abs(CountSteppers34000)-1)*1000 + 990; puti(BackColors34000, ForeColors34000); var dthens34000 = new Date(TargetDates34000); var dnows34000 = new Date("06/22/2026 2:37:15 AM"); if(CountSteppers34000>0) ddiffs34000 = new Date(dnows34000-dthens34000); else ddiffs34000 = new Date(dthens34000-dnows34000); gsecss34000 = Math.floor(ddiffs34000.valueOf()/1000); CountBacks34000(gsecss34000);