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 (LeadingZeros34344 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34344(secs) { if (secs < 0) { document.getElementById("cntdwns34344").innerHTML = FinishMessages34344; return; } DisplayStrs34344 = DisplayFormats34344.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34344 = DisplayStrs34344.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34344 = DisplayStrs34344.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34344 = DisplayStrs34344.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34344").innerHTML = DisplayStrs34344; if (CountActives34344) //alert(SetTimeOutPeriods34344); setTimeout("CountBacks34344(" + (secs+CountSteppers34344) + ")", SetTimeOutPeriods34344); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34344)=="undefined") BackColors34344 = ""; if (typeof(ForeColors34344)=="undefined") ForeColors34344= "white"; if (typeof(TargetDates34344)=="undefined") TargetDates34344 = "11/13/2026 7:00:00 AM"; if (typeof(DisplayFormats34344)=="undefined") DisplayFormats34344 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34344)=="undefined") CountActives34344 = true; if (typeof(FinishMessages34344)=="undefined") FinishMessages34344 = ""; if (typeof(CountSteppers34344)!="number") CountSteppers34344 = -1; if (typeof(LeadingZeros34344)=="undefined") LeadingZeros34344 = true; CountSteppers34344 = Math.ceil(CountSteppers34344); if (CountSteppers34344 == 0) CountActives34344 = false; var SetTimeOutPeriods34344 = (Math.abs(CountSteppers34344)-1)*1000 + 990; puti(BackColors34344, ForeColors34344); var dthens34344 = new Date(TargetDates34344); var dnows34344 = new Date("11/11/2026 4:05:27 AM"); if(CountSteppers34344>0) ddiffs34344 = new Date(dnows34344-dthens34344); else ddiffs34344 = new Date(dthens34344-dnows34344); gsecss34344 = Math.floor(ddiffs34344.valueOf()/1000); CountBacks34344(gsecss34344);