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 (LeadingZeros34037 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34037(secs) { if (secs < 0) { document.getElementById("cntdwns34037").innerHTML = FinishMessages34037; return; } DisplayStrs34037 = DisplayFormats34037.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34037 = DisplayStrs34037.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34037 = DisplayStrs34037.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34037 = DisplayStrs34037.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34037").innerHTML = DisplayStrs34037; if (CountActives34037) //alert(SetTimeOutPeriods34037); setTimeout("CountBacks34037(" + (secs+CountSteppers34037) + ")", SetTimeOutPeriods34037); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34037)=="undefined") BackColors34037 = ""; if (typeof(ForeColors34037)=="undefined") ForeColors34037= "white"; if (typeof(TargetDates34037)=="undefined") TargetDates34037 = "06/21/2026 10:00:00 PM"; if (typeof(DisplayFormats34037)=="undefined") DisplayFormats34037 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34037)=="undefined") CountActives34037 = true; if (typeof(FinishMessages34037)=="undefined") FinishMessages34037 = ""; if (typeof(CountSteppers34037)!="number") CountSteppers34037 = -1; if (typeof(LeadingZeros34037)=="undefined") LeadingZeros34037 = true; CountSteppers34037 = Math.ceil(CountSteppers34037); if (CountSteppers34037 == 0) CountActives34037 = false; var SetTimeOutPeriods34037 = (Math.abs(CountSteppers34037)-1)*1000 + 990; puti(BackColors34037, ForeColors34037); var dthens34037 = new Date(TargetDates34037); var dnows34037 = new Date("06/19/2026 2:35:28 PM"); if(CountSteppers34037>0) ddiffs34037 = new Date(dnows34037-dthens34037); else ddiffs34037 = new Date(dthens34037-dnows34037); gsecss34037 = Math.floor(ddiffs34037.valueOf()/1000); CountBacks34037(gsecss34037);