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 (LeadingZeros34178 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34178(secs) { if (secs < 0) { document.getElementById("cntdwns34178").innerHTML = FinishMessages34178; return; } DisplayStrs34178 = DisplayFormats34178.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34178 = DisplayStrs34178.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34178 = DisplayStrs34178.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34178 = DisplayStrs34178.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34178").innerHTML = DisplayStrs34178; if (CountActives34178) //alert(SetTimeOutPeriods34178); setTimeout("CountBacks34178(" + (secs+CountSteppers34178) + ")", SetTimeOutPeriods34178); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34178)=="undefined") BackColors34178 = ""; if (typeof(ForeColors34178)=="undefined") ForeColors34178= "white"; if (typeof(TargetDates34178)=="undefined") TargetDates34178 = "09/30/2026 12:00:00 PM"; if (typeof(DisplayFormats34178)=="undefined") DisplayFormats34178 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34178)=="undefined") CountActives34178 = true; if (typeof(FinishMessages34178)=="undefined") FinishMessages34178 = ""; if (typeof(CountSteppers34178)!="number") CountSteppers34178 = -1; if (typeof(LeadingZeros34178)=="undefined") LeadingZeros34178 = true; CountSteppers34178 = Math.ceil(CountSteppers34178); if (CountSteppers34178 == 0) CountActives34178 = false; var SetTimeOutPeriods34178 = (Math.abs(CountSteppers34178)-1)*1000 + 990; puti(BackColors34178, ForeColors34178); var dthens34178 = new Date(TargetDates34178); var dnows34178 = new Date("09/28/2026 10:13:28 PM"); if(CountSteppers34178>0) ddiffs34178 = new Date(dnows34178-dthens34178); else ddiffs34178 = new Date(dthens34178-dnows34178); gsecss34178 = Math.floor(ddiffs34178.valueOf()/1000); CountBacks34178(gsecss34178);