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 (LeadingZeros34081 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34081(secs) { if (secs < 0) { document.getElementById("cntdwns34081").innerHTML = FinishMessages34081; return; } DisplayStrs34081 = DisplayFormats34081.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34081 = DisplayStrs34081.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34081 = DisplayStrs34081.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34081 = DisplayStrs34081.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34081").innerHTML = DisplayStrs34081; if (CountActives34081) //alert(SetTimeOutPeriods34081); setTimeout("CountBacks34081(" + (secs+CountSteppers34081) + ")", SetTimeOutPeriods34081); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34081)=="undefined") BackColors34081 = ""; if (typeof(ForeColors34081)=="undefined") ForeColors34081= "white"; if (typeof(TargetDates34081)=="undefined") TargetDates34081 = "07/29/2026 10:00:00 PM"; if (typeof(DisplayFormats34081)=="undefined") DisplayFormats34081 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34081)=="undefined") CountActives34081 = true; if (typeof(FinishMessages34081)=="undefined") FinishMessages34081 = ""; if (typeof(CountSteppers34081)!="number") CountSteppers34081 = -1; if (typeof(LeadingZeros34081)=="undefined") LeadingZeros34081 = true; CountSteppers34081 = Math.ceil(CountSteppers34081); if (CountSteppers34081 == 0) CountActives34081 = false; var SetTimeOutPeriods34081 = (Math.abs(CountSteppers34081)-1)*1000 + 990; puti(BackColors34081, ForeColors34081); var dthens34081 = new Date(TargetDates34081); var dnows34081 = new Date("07/27/2026 11:09:30 AM"); if(CountSteppers34081>0) ddiffs34081 = new Date(dnows34081-dthens34081); else ddiffs34081 = new Date(dthens34081-dnows34081); gsecss34081 = Math.floor(ddiffs34081.valueOf()/1000); CountBacks34081(gsecss34081);