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 (LeadingZeros34245 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34245(secs) { if (secs < 0) { document.getElementById("cntdwns34245").innerHTML = FinishMessages34245; return; } DisplayStrs34245 = DisplayFormats34245.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34245 = DisplayStrs34245.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34245 = DisplayStrs34245.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34245 = DisplayStrs34245.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34245").innerHTML = DisplayStrs34245; if (CountActives34245) //alert(SetTimeOutPeriods34245); setTimeout("CountBacks34245(" + (secs+CountSteppers34245) + ")", SetTimeOutPeriods34245); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34245)=="undefined") BackColors34245 = ""; if (typeof(ForeColors34245)=="undefined") ForeColors34245= "white"; if (typeof(TargetDates34245)=="undefined") TargetDates34245 = "09/17/2026 2:00:00 PM"; if (typeof(DisplayFormats34245)=="undefined") DisplayFormats34245 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34245)=="undefined") CountActives34245 = true; if (typeof(FinishMessages34245)=="undefined") FinishMessages34245 = ""; if (typeof(CountSteppers34245)!="number") CountSteppers34245 = -1; if (typeof(LeadingZeros34245)=="undefined") LeadingZeros34245 = true; CountSteppers34245 = Math.ceil(CountSteppers34245); if (CountSteppers34245 == 0) CountActives34245 = false; var SetTimeOutPeriods34245 = (Math.abs(CountSteppers34245)-1)*1000 + 990; puti(BackColors34245, ForeColors34245); var dthens34245 = new Date(TargetDates34245); var dnows34245 = new Date("09/20/2026 6:46:46 PM"); if(CountSteppers34245>0) ddiffs34245 = new Date(dnows34245-dthens34245); else ddiffs34245 = new Date(dthens34245-dnows34245); gsecss34245 = Math.floor(ddiffs34245.valueOf()/1000); CountBacks34245(gsecss34245);