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 (LeadingZeros34173 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34173(secs) { if (secs < 0) { document.getElementById("cntdwns34173").innerHTML = FinishMessages34173; return; } DisplayStrs34173 = DisplayFormats34173.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34173 = DisplayStrs34173.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34173 = DisplayStrs34173.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34173 = DisplayStrs34173.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34173").innerHTML = DisplayStrs34173; if (CountActives34173) //alert(SetTimeOutPeriods34173); setTimeout("CountBacks34173(" + (secs+CountSteppers34173) + ")", SetTimeOutPeriods34173); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34173)=="undefined") BackColors34173 = ""; if (typeof(ForeColors34173)=="undefined") ForeColors34173= "white"; if (typeof(TargetDates34173)=="undefined") TargetDates34173 = "09/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34173)=="undefined") DisplayFormats34173 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34173)=="undefined") CountActives34173 = true; if (typeof(FinishMessages34173)=="undefined") FinishMessages34173 = ""; if (typeof(CountSteppers34173)!="number") CountSteppers34173 = -1; if (typeof(LeadingZeros34173)=="undefined") LeadingZeros34173 = true; CountSteppers34173 = Math.ceil(CountSteppers34173); if (CountSteppers34173 == 0) CountActives34173 = false; var SetTimeOutPeriods34173 = (Math.abs(CountSteppers34173)-1)*1000 + 990; puti(BackColors34173, ForeColors34173); var dthens34173 = new Date(TargetDates34173); var dnows34173 = new Date("09/21/2026 9:02:31 AM"); if(CountSteppers34173>0) ddiffs34173 = new Date(dnows34173-dthens34173); else ddiffs34173 = new Date(dthens34173-dnows34173); gsecss34173 = Math.floor(ddiffs34173.valueOf()/1000); CountBacks34173(gsecss34173);