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 (LeadingZeros34014 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34014(secs) { if (secs < 0) { document.getElementById("cntdwns34014").innerHTML = FinishMessages34014; return; } DisplayStrs34014 = DisplayFormats34014.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34014 = DisplayStrs34014.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34014 = DisplayStrs34014.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34014 = DisplayStrs34014.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34014").innerHTML = DisplayStrs34014; if (CountActives34014) //alert(SetTimeOutPeriods34014); setTimeout("CountBacks34014(" + (secs+CountSteppers34014) + ")", SetTimeOutPeriods34014); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34014)=="undefined") BackColors34014 = ""; if (typeof(ForeColors34014)=="undefined") ForeColors34014= "white"; if (typeof(TargetDates34014)=="undefined") TargetDates34014 = "06/13/2026 10:00:00 PM"; if (typeof(DisplayFormats34014)=="undefined") DisplayFormats34014 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34014)=="undefined") CountActives34014 = true; if (typeof(FinishMessages34014)=="undefined") FinishMessages34014 = ""; if (typeof(CountSteppers34014)!="number") CountSteppers34014 = -1; if (typeof(LeadingZeros34014)=="undefined") LeadingZeros34014 = true; CountSteppers34014 = Math.ceil(CountSteppers34014); if (CountSteppers34014 == 0) CountActives34014 = false; var SetTimeOutPeriods34014 = (Math.abs(CountSteppers34014)-1)*1000 + 990; puti(BackColors34014, ForeColors34014); var dthens34014 = new Date(TargetDates34014); var dnows34014 = new Date("06/10/2026 8:49:48 PM"); if(CountSteppers34014>0) ddiffs34014 = new Date(dnows34014-dthens34014); else ddiffs34014 = new Date(dthens34014-dnows34014); gsecss34014 = Math.floor(ddiffs34014.valueOf()/1000); CountBacks34014(gsecss34014);