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 (LeadingZeros34253 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34253(secs) { if (secs < 0) { document.getElementById("cntdwns34253").innerHTML = FinishMessages34253; return; } DisplayStrs34253 = DisplayFormats34253.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34253 = DisplayStrs34253.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34253 = DisplayStrs34253.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34253 = DisplayStrs34253.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34253").innerHTML = DisplayStrs34253; if (CountActives34253) //alert(SetTimeOutPeriods34253); setTimeout("CountBacks34253(" + (secs+CountSteppers34253) + ")", SetTimeOutPeriods34253); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34253)=="undefined") BackColors34253 = ""; if (typeof(ForeColors34253)=="undefined") ForeColors34253= "white"; if (typeof(TargetDates34253)=="undefined") TargetDates34253 = "09/29/2026 8:00:00 AM"; if (typeof(DisplayFormats34253)=="undefined") DisplayFormats34253 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34253)=="undefined") CountActives34253 = true; if (typeof(FinishMessages34253)=="undefined") FinishMessages34253 = ""; if (typeof(CountSteppers34253)!="number") CountSteppers34253 = -1; if (typeof(LeadingZeros34253)=="undefined") LeadingZeros34253 = true; CountSteppers34253 = Math.ceil(CountSteppers34253); if (CountSteppers34253 == 0) CountActives34253 = false; var SetTimeOutPeriods34253 = (Math.abs(CountSteppers34253)-1)*1000 + 990; puti(BackColors34253, ForeColors34253); var dthens34253 = new Date(TargetDates34253); var dnows34253 = new Date("09/27/2026 5:11:29 AM"); if(CountSteppers34253>0) ddiffs34253 = new Date(dnows34253-dthens34253); else ddiffs34253 = new Date(dthens34253-dnows34253); gsecss34253 = Math.floor(ddiffs34253.valueOf()/1000); CountBacks34253(gsecss34253);