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 (LeadingZeros34261 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34261(secs) { if (secs < 0) { document.getElementById("cntdwns34261").innerHTML = FinishMessages34261; return; } DisplayStrs34261 = DisplayFormats34261.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34261 = DisplayStrs34261.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34261 = DisplayStrs34261.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34261 = DisplayStrs34261.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34261").innerHTML = DisplayStrs34261; if (CountActives34261) //alert(SetTimeOutPeriods34261); setTimeout("CountBacks34261(" + (secs+CountSteppers34261) + ")", SetTimeOutPeriods34261); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34261)=="undefined") BackColors34261 = ""; if (typeof(ForeColors34261)=="undefined") ForeColors34261= "white"; if (typeof(TargetDates34261)=="undefined") TargetDates34261 = "10/08/2026 9:00:00 AM"; if (typeof(DisplayFormats34261)=="undefined") DisplayFormats34261 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34261)=="undefined") CountActives34261 = true; if (typeof(FinishMessages34261)=="undefined") FinishMessages34261 = ""; if (typeof(CountSteppers34261)!="number") CountSteppers34261 = -1; if (typeof(LeadingZeros34261)=="undefined") LeadingZeros34261 = true; CountSteppers34261 = Math.ceil(CountSteppers34261); if (CountSteppers34261 == 0) CountActives34261 = false; var SetTimeOutPeriods34261 = (Math.abs(CountSteppers34261)-1)*1000 + 990; puti(BackColors34261, ForeColors34261); var dthens34261 = new Date(TargetDates34261); var dnows34261 = new Date("10/06/2026 11:15:20 AM"); if(CountSteppers34261>0) ddiffs34261 = new Date(dnows34261-dthens34261); else ddiffs34261 = new Date(dthens34261-dnows34261); gsecss34261 = Math.floor(ddiffs34261.valueOf()/1000); CountBacks34261(gsecss34261);