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 (LeadingZeros34030 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34030(secs) { if (secs < 0) { document.getElementById("cntdwns34030").innerHTML = FinishMessages34030; return; } DisplayStrs34030 = DisplayFormats34030.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34030 = DisplayStrs34030.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34030 = DisplayStrs34030.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34030 = DisplayStrs34030.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34030").innerHTML = DisplayStrs34030; if (CountActives34030) //alert(SetTimeOutPeriods34030); setTimeout("CountBacks34030(" + (secs+CountSteppers34030) + ")", SetTimeOutPeriods34030); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34030)=="undefined") BackColors34030 = ""; if (typeof(ForeColors34030)=="undefined") ForeColors34030= "white"; if (typeof(TargetDates34030)=="undefined") TargetDates34030 = "06/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34030)=="undefined") DisplayFormats34030 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34030)=="undefined") CountActives34030 = true; if (typeof(FinishMessages34030)=="undefined") FinishMessages34030 = ""; if (typeof(CountSteppers34030)!="number") CountSteppers34030 = -1; if (typeof(LeadingZeros34030)=="undefined") LeadingZeros34030 = true; CountSteppers34030 = Math.ceil(CountSteppers34030); if (CountSteppers34030 == 0) CountActives34030 = false; var SetTimeOutPeriods34030 = (Math.abs(CountSteppers34030)-1)*1000 + 990; puti(BackColors34030, ForeColors34030); var dthens34030 = new Date(TargetDates34030); var dnows34030 = new Date("06/22/2026 4:05:23 AM"); if(CountSteppers34030>0) ddiffs34030 = new Date(dnows34030-dthens34030); else ddiffs34030 = new Date(dthens34030-dnows34030); gsecss34030 = Math.floor(ddiffs34030.valueOf()/1000); CountBacks34030(gsecss34030);