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 (LeadingZeros34331 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34331(secs) { if (secs < 0) { document.getElementById("cntdwns34331").innerHTML = FinishMessages34331; return; } DisplayStrs34331 = DisplayFormats34331.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34331 = DisplayStrs34331.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34331 = DisplayStrs34331.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34331 = DisplayStrs34331.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34331").innerHTML = DisplayStrs34331; if (CountActives34331) //alert(SetTimeOutPeriods34331); setTimeout("CountBacks34331(" + (secs+CountSteppers34331) + ")", SetTimeOutPeriods34331); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34331)=="undefined") BackColors34331 = ""; if (typeof(ForeColors34331)=="undefined") ForeColors34331= "white"; if (typeof(TargetDates34331)=="undefined") TargetDates34331 = "10/26/2026 9:00:00 PM"; if (typeof(DisplayFormats34331)=="undefined") DisplayFormats34331 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34331)=="undefined") CountActives34331 = true; if (typeof(FinishMessages34331)=="undefined") FinishMessages34331 = ""; if (typeof(CountSteppers34331)!="number") CountSteppers34331 = -1; if (typeof(LeadingZeros34331)=="undefined") LeadingZeros34331 = true; CountSteppers34331 = Math.ceil(CountSteppers34331); if (CountSteppers34331 == 0) CountActives34331 = false; var SetTimeOutPeriods34331 = (Math.abs(CountSteppers34331)-1)*1000 + 990; puti(BackColors34331, ForeColors34331); var dthens34331 = new Date(TargetDates34331); var dnows34331 = new Date("10/24/2026 6:27:24 AM"); if(CountSteppers34331>0) ddiffs34331 = new Date(dnows34331-dthens34331); else ddiffs34331 = new Date(dthens34331-dnows34331); gsecss34331 = Math.floor(ddiffs34331.valueOf()/1000); CountBacks34331(gsecss34331);