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 (LeadingZeros34310 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34310(secs) { if (secs < 0) { document.getElementById("cntdwns34310").innerHTML = FinishMessages34310; return; } DisplayStrs34310 = DisplayFormats34310.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34310 = DisplayStrs34310.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34310 = DisplayStrs34310.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34310 = DisplayStrs34310.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34310").innerHTML = DisplayStrs34310; if (CountActives34310) //alert(SetTimeOutPeriods34310); setTimeout("CountBacks34310(" + (secs+CountSteppers34310) + ")", SetTimeOutPeriods34310); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34310)=="undefined") BackColors34310 = ""; if (typeof(ForeColors34310)=="undefined") ForeColors34310= "white"; if (typeof(TargetDates34310)=="undefined") TargetDates34310 = "10/06/2026 8:00:00 AM"; if (typeof(DisplayFormats34310)=="undefined") DisplayFormats34310 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34310)=="undefined") CountActives34310 = true; if (typeof(FinishMessages34310)=="undefined") FinishMessages34310 = ""; if (typeof(CountSteppers34310)!="number") CountSteppers34310 = -1; if (typeof(LeadingZeros34310)=="undefined") LeadingZeros34310 = true; CountSteppers34310 = Math.ceil(CountSteppers34310); if (CountSteppers34310 == 0) CountActives34310 = false; var SetTimeOutPeriods34310 = (Math.abs(CountSteppers34310)-1)*1000 + 990; puti(BackColors34310, ForeColors34310); var dthens34310 = new Date(TargetDates34310); var dnows34310 = new Date("10/04/2026 11:36:24 PM"); if(CountSteppers34310>0) ddiffs34310 = new Date(dnows34310-dthens34310); else ddiffs34310 = new Date(dthens34310-dnows34310); gsecss34310 = Math.floor(ddiffs34310.valueOf()/1000); CountBacks34310(gsecss34310);