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 (LeadingZeros34284 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34284(secs) { if (secs < 0) { document.getElementById("cntdwns34284").innerHTML = FinishMessages34284; return; } DisplayStrs34284 = DisplayFormats34284.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34284 = DisplayStrs34284.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34284 = DisplayStrs34284.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34284 = DisplayStrs34284.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34284").innerHTML = DisplayStrs34284; if (CountActives34284) //alert(SetTimeOutPeriods34284); setTimeout("CountBacks34284(" + (secs+CountSteppers34284) + ")", SetTimeOutPeriods34284); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34284)=="undefined") BackColors34284 = ""; if (typeof(ForeColors34284)=="undefined") ForeColors34284= "white"; if (typeof(TargetDates34284)=="undefined") TargetDates34284 = "10/08/2026 10:00:00 PM"; if (typeof(DisplayFormats34284)=="undefined") DisplayFormats34284 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34284)=="undefined") CountActives34284 = true; if (typeof(FinishMessages34284)=="undefined") FinishMessages34284 = ""; if (typeof(CountSteppers34284)!="number") CountSteppers34284 = -1; if (typeof(LeadingZeros34284)=="undefined") LeadingZeros34284 = true; CountSteppers34284 = Math.ceil(CountSteppers34284); if (CountSteppers34284 == 0) CountActives34284 = false; var SetTimeOutPeriods34284 = (Math.abs(CountSteppers34284)-1)*1000 + 990; puti(BackColors34284, ForeColors34284); var dthens34284 = new Date(TargetDates34284); var dnows34284 = new Date("10/06/2026 7:43:35 PM"); if(CountSteppers34284>0) ddiffs34284 = new Date(dnows34284-dthens34284); else ddiffs34284 = new Date(dthens34284-dnows34284); gsecss34284 = Math.floor(ddiffs34284.valueOf()/1000); CountBacks34284(gsecss34284);