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 (LeadingZeros34283 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34283(secs) { if (secs < 0) { document.getElementById("cntdwns34283").innerHTML = FinishMessages34283; return; } DisplayStrs34283 = DisplayFormats34283.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34283 = DisplayStrs34283.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34283 = DisplayStrs34283.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34283 = DisplayStrs34283.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34283").innerHTML = DisplayStrs34283; if (CountActives34283) //alert(SetTimeOutPeriods34283); setTimeout("CountBacks34283(" + (secs+CountSteppers34283) + ")", SetTimeOutPeriods34283); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34283)=="undefined") BackColors34283 = ""; if (typeof(ForeColors34283)=="undefined") ForeColors34283= "white"; if (typeof(TargetDates34283)=="undefined") TargetDates34283 = "09/30/2026 10:00:00 PM"; if (typeof(DisplayFormats34283)=="undefined") DisplayFormats34283 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34283)=="undefined") CountActives34283 = true; if (typeof(FinishMessages34283)=="undefined") FinishMessages34283 = ""; if (typeof(CountSteppers34283)!="number") CountSteppers34283 = -1; if (typeof(LeadingZeros34283)=="undefined") LeadingZeros34283 = true; CountSteppers34283 = Math.ceil(CountSteppers34283); if (CountSteppers34283 == 0) CountActives34283 = false; var SetTimeOutPeriods34283 = (Math.abs(CountSteppers34283)-1)*1000 + 990; puti(BackColors34283, ForeColors34283); var dthens34283 = new Date(TargetDates34283); var dnows34283 = new Date("09/28/2026 4:34:01 AM"); if(CountSteppers34283>0) ddiffs34283 = new Date(dnows34283-dthens34283); else ddiffs34283 = new Date(dthens34283-dnows34283); gsecss34283 = Math.floor(ddiffs34283.valueOf()/1000); CountBacks34283(gsecss34283);