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 (LeadingZeros34423 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34423(secs) { if (secs < 0) { document.getElementById("cntdwns34423").innerHTML = FinishMessages34423; return; } DisplayStrs34423 = DisplayFormats34423.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34423 = DisplayStrs34423.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34423 = DisplayStrs34423.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34423 = DisplayStrs34423.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34423").innerHTML = DisplayStrs34423; if (CountActives34423) //alert(SetTimeOutPeriods34423); setTimeout("CountBacks34423(" + (secs+CountSteppers34423) + ")", SetTimeOutPeriods34423); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34423)=="undefined") BackColors34423 = ""; if (typeof(ForeColors34423)=="undefined") ForeColors34423= "white"; if (typeof(TargetDates34423)=="undefined") TargetDates34423 = "11/04/2026 3:00:00 PM"; if (typeof(DisplayFormats34423)=="undefined") DisplayFormats34423 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34423)=="undefined") CountActives34423 = true; if (typeof(FinishMessages34423)=="undefined") FinishMessages34423 = ""; if (typeof(CountSteppers34423)!="number") CountSteppers34423 = -1; if (typeof(LeadingZeros34423)=="undefined") LeadingZeros34423 = true; CountSteppers34423 = Math.ceil(CountSteppers34423); if (CountSteppers34423 == 0) CountActives34423 = false; var SetTimeOutPeriods34423 = (Math.abs(CountSteppers34423)-1)*1000 + 990; puti(BackColors34423, ForeColors34423); var dthens34423 = new Date(TargetDates34423); var dnows34423 = new Date("11/01/2026 5:26:13 AM"); if(CountSteppers34423>0) ddiffs34423 = new Date(dnows34423-dthens34423); else ddiffs34423 = new Date(dthens34423-dnows34423); gsecss34423 = Math.floor(ddiffs34423.valueOf()/1000); CountBacks34423(gsecss34423);