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 (LeadingZeros34165 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34165(secs) { if (secs < 0) { document.getElementById("cntdwns34165").innerHTML = FinishMessages34165; return; } DisplayStrs34165 = DisplayFormats34165.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34165 = DisplayStrs34165.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34165 = DisplayStrs34165.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34165 = DisplayStrs34165.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34165").innerHTML = DisplayStrs34165; if (CountActives34165) //alert(SetTimeOutPeriods34165); setTimeout("CountBacks34165(" + (secs+CountSteppers34165) + ")", SetTimeOutPeriods34165); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34165)=="undefined") BackColors34165 = ""; if (typeof(ForeColors34165)=="undefined") ForeColors34165= "white"; if (typeof(TargetDates34165)=="undefined") TargetDates34165 = "09/29/2026 10:00:00 PM"; if (typeof(DisplayFormats34165)=="undefined") DisplayFormats34165 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34165)=="undefined") CountActives34165 = true; if (typeof(FinishMessages34165)=="undefined") FinishMessages34165 = ""; if (typeof(CountSteppers34165)!="number") CountSteppers34165 = -1; if (typeof(LeadingZeros34165)=="undefined") LeadingZeros34165 = true; CountSteppers34165 = Math.ceil(CountSteppers34165); if (CountSteppers34165 == 0) CountActives34165 = false; var SetTimeOutPeriods34165 = (Math.abs(CountSteppers34165)-1)*1000 + 990; puti(BackColors34165, ForeColors34165); var dthens34165 = new Date(TargetDates34165); var dnows34165 = new Date("09/26/2026 3:40:55 AM"); if(CountSteppers34165>0) ddiffs34165 = new Date(dnows34165-dthens34165); else ddiffs34165 = new Date(dthens34165-dnows34165); gsecss34165 = Math.floor(ddiffs34165.valueOf()/1000); CountBacks34165(gsecss34165);