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 (LeadingZeros34254 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34254(secs) { if (secs < 0) { document.getElementById("cntdwns34254").innerHTML = FinishMessages34254; return; } DisplayStrs34254 = DisplayFormats34254.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34254 = DisplayStrs34254.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34254 = DisplayStrs34254.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34254 = DisplayStrs34254.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34254").innerHTML = DisplayStrs34254; if (CountActives34254) //alert(SetTimeOutPeriods34254); setTimeout("CountBacks34254(" + (secs+CountSteppers34254) + ")", SetTimeOutPeriods34254); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34254)=="undefined") BackColors34254 = ""; if (typeof(ForeColors34254)=="undefined") ForeColors34254= "white"; if (typeof(TargetDates34254)=="undefined") TargetDates34254 = "09/29/2026 8:00:00 AM"; if (typeof(DisplayFormats34254)=="undefined") DisplayFormats34254 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34254)=="undefined") CountActives34254 = true; if (typeof(FinishMessages34254)=="undefined") FinishMessages34254 = ""; if (typeof(CountSteppers34254)!="number") CountSteppers34254 = -1; if (typeof(LeadingZeros34254)=="undefined") LeadingZeros34254 = true; CountSteppers34254 = Math.ceil(CountSteppers34254); if (CountSteppers34254 == 0) CountActives34254 = false; var SetTimeOutPeriods34254 = (Math.abs(CountSteppers34254)-1)*1000 + 990; puti(BackColors34254, ForeColors34254); var dthens34254 = new Date(TargetDates34254); var dnows34254 = new Date("09/27/2026 5:11:43 AM"); if(CountSteppers34254>0) ddiffs34254 = new Date(dnows34254-dthens34254); else ddiffs34254 = new Date(dthens34254-dnows34254); gsecss34254 = Math.floor(ddiffs34254.valueOf()/1000); CountBacks34254(gsecss34254);