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 (LeadingZeros34314 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34314(secs) { if (secs < 0) { document.getElementById("cntdwns34314").innerHTML = FinishMessages34314; return; } DisplayStrs34314 = DisplayFormats34314.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34314 = DisplayStrs34314.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34314 = DisplayStrs34314.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34314 = DisplayStrs34314.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34314").innerHTML = DisplayStrs34314; if (CountActives34314) //alert(SetTimeOutPeriods34314); setTimeout("CountBacks34314(" + (secs+CountSteppers34314) + ")", SetTimeOutPeriods34314); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34314)=="undefined") BackColors34314 = ""; if (typeof(ForeColors34314)=="undefined") ForeColors34314= "white"; if (typeof(TargetDates34314)=="undefined") TargetDates34314 = "11/09/2026 8:00:00 AM"; if (typeof(DisplayFormats34314)=="undefined") DisplayFormats34314 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34314)=="undefined") CountActives34314 = true; if (typeof(FinishMessages34314)=="undefined") FinishMessages34314 = ""; if (typeof(CountSteppers34314)!="number") CountSteppers34314 = -1; if (typeof(LeadingZeros34314)=="undefined") LeadingZeros34314 = true; CountSteppers34314 = Math.ceil(CountSteppers34314); if (CountSteppers34314 == 0) CountActives34314 = false; var SetTimeOutPeriods34314 = (Math.abs(CountSteppers34314)-1)*1000 + 990; puti(BackColors34314, ForeColors34314); var dthens34314 = new Date(TargetDates34314); var dnows34314 = new Date("11/06/2026 6:18:34 AM"); if(CountSteppers34314>0) ddiffs34314 = new Date(dnows34314-dthens34314); else ddiffs34314 = new Date(dthens34314-dnows34314); gsecss34314 = Math.floor(ddiffs34314.valueOf()/1000); CountBacks34314(gsecss34314);