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 (LeadingZeros34508 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34508(secs) { if (secs < 0) { document.getElementById("cntdwns34508").innerHTML = FinishMessages34508; return; } DisplayStrs34508 = DisplayFormats34508.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34508 = DisplayStrs34508.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34508 = DisplayStrs34508.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34508 = DisplayStrs34508.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34508").innerHTML = DisplayStrs34508; if (CountActives34508) //alert(SetTimeOutPeriods34508); setTimeout("CountBacks34508(" + (secs+CountSteppers34508) + ")", SetTimeOutPeriods34508); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34508)=="undefined") BackColors34508 = ""; if (typeof(ForeColors34508)=="undefined") ForeColors34508= "white"; if (typeof(TargetDates34508)=="undefined") TargetDates34508 = "12/01/2026 11:00:00 PM"; if (typeof(DisplayFormats34508)=="undefined") DisplayFormats34508 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34508)=="undefined") CountActives34508 = true; if (typeof(FinishMessages34508)=="undefined") FinishMessages34508 = ""; if (typeof(CountSteppers34508)!="number") CountSteppers34508 = -1; if (typeof(LeadingZeros34508)=="undefined") LeadingZeros34508 = true; CountSteppers34508 = Math.ceil(CountSteppers34508); if (CountSteppers34508 == 0) CountActives34508 = false; var SetTimeOutPeriods34508 = (Math.abs(CountSteppers34508)-1)*1000 + 990; puti(BackColors34508, ForeColors34508); var dthens34508 = new Date(TargetDates34508); var dnows34508 = new Date("11/29/2026 1:50:09 AM"); if(CountSteppers34508>0) ddiffs34508 = new Date(dnows34508-dthens34508); else ddiffs34508 = new Date(dthens34508-dnows34508); gsecss34508 = Math.floor(ddiffs34508.valueOf()/1000); CountBacks34508(gsecss34508);