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 (LeadingZeros34172 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34172(secs) { if (secs < 0) { document.getElementById("cntdwns34172").innerHTML = FinishMessages34172; return; } DisplayStrs34172 = DisplayFormats34172.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34172 = DisplayStrs34172.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34172 = DisplayStrs34172.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34172 = DisplayStrs34172.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34172").innerHTML = DisplayStrs34172; if (CountActives34172) //alert(SetTimeOutPeriods34172); setTimeout("CountBacks34172(" + (secs+CountSteppers34172) + ")", SetTimeOutPeriods34172); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34172)=="undefined") BackColors34172 = ""; if (typeof(ForeColors34172)=="undefined") ForeColors34172= "white"; if (typeof(TargetDates34172)=="undefined") TargetDates34172 = "09/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34172)=="undefined") DisplayFormats34172 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34172)=="undefined") CountActives34172 = true; if (typeof(FinishMessages34172)=="undefined") FinishMessages34172 = ""; if (typeof(CountSteppers34172)!="number") CountSteppers34172 = -1; if (typeof(LeadingZeros34172)=="undefined") LeadingZeros34172 = true; CountSteppers34172 = Math.ceil(CountSteppers34172); if (CountSteppers34172 == 0) CountActives34172 = false; var SetTimeOutPeriods34172 = (Math.abs(CountSteppers34172)-1)*1000 + 990; puti(BackColors34172, ForeColors34172); var dthens34172 = new Date(TargetDates34172); var dnows34172 = new Date("09/21/2026 4:00:39 PM"); if(CountSteppers34172>0) ddiffs34172 = new Date(dnows34172-dthens34172); else ddiffs34172 = new Date(dthens34172-dnows34172); gsecss34172 = Math.floor(ddiffs34172.valueOf()/1000); CountBacks34172(gsecss34172);