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 (LeadingZeros34288 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34288(secs) { if (secs < 0) { document.getElementById("cntdwns34288").innerHTML = FinishMessages34288; return; } DisplayStrs34288 = DisplayFormats34288.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34288 = DisplayStrs34288.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34288 = DisplayStrs34288.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34288 = DisplayStrs34288.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34288").innerHTML = DisplayStrs34288; if (CountActives34288) //alert(SetTimeOutPeriods34288); setTimeout("CountBacks34288(" + (secs+CountSteppers34288) + ")", SetTimeOutPeriods34288); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34288)=="undefined") BackColors34288 = ""; if (typeof(ForeColors34288)=="undefined") ForeColors34288= "white"; if (typeof(TargetDates34288)=="undefined") TargetDates34288 = "10/03/2026 8:00:00 AM"; if (typeof(DisplayFormats34288)=="undefined") DisplayFormats34288 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34288)=="undefined") CountActives34288 = true; if (typeof(FinishMessages34288)=="undefined") FinishMessages34288 = ""; if (typeof(CountSteppers34288)!="number") CountSteppers34288 = -1; if (typeof(LeadingZeros34288)=="undefined") LeadingZeros34288 = true; CountSteppers34288 = Math.ceil(CountSteppers34288); if (CountSteppers34288 == 0) CountActives34288 = false; var SetTimeOutPeriods34288 = (Math.abs(CountSteppers34288)-1)*1000 + 990; puti(BackColors34288, ForeColors34288); var dthens34288 = new Date(TargetDates34288); var dnows34288 = new Date("10/01/2026 4:01:46 PM"); if(CountSteppers34288>0) ddiffs34288 = new Date(dnows34288-dthens34288); else ddiffs34288 = new Date(dthens34288-dnows34288); gsecss34288 = Math.floor(ddiffs34288.valueOf()/1000); CountBacks34288(gsecss34288);