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 (LeadingZeros34055 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34055(secs) { if (secs < 0) { document.getElementById("cntdwns34055").innerHTML = FinishMessages34055; return; } DisplayStrs34055 = DisplayFormats34055.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34055 = DisplayStrs34055.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34055 = DisplayStrs34055.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34055 = DisplayStrs34055.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34055").innerHTML = DisplayStrs34055; if (CountActives34055) //alert(SetTimeOutPeriods34055); setTimeout("CountBacks34055(" + (secs+CountSteppers34055) + ")", SetTimeOutPeriods34055); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34055)=="undefined") BackColors34055 = ""; if (typeof(ForeColors34055)=="undefined") ForeColors34055= "white"; if (typeof(TargetDates34055)=="undefined") TargetDates34055 = "07/13/2026 10:00:00 PM"; if (typeof(DisplayFormats34055)=="undefined") DisplayFormats34055 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34055)=="undefined") CountActives34055 = true; if (typeof(FinishMessages34055)=="undefined") FinishMessages34055 = ""; if (typeof(CountSteppers34055)!="number") CountSteppers34055 = -1; if (typeof(LeadingZeros34055)=="undefined") LeadingZeros34055 = true; CountSteppers34055 = Math.ceil(CountSteppers34055); if (CountSteppers34055 == 0) CountActives34055 = false; var SetTimeOutPeriods34055 = (Math.abs(CountSteppers34055)-1)*1000 + 990; puti(BackColors34055, ForeColors34055); var dthens34055 = new Date(TargetDates34055); var dnows34055 = new Date("07/10/2026 10:51:06 AM"); if(CountSteppers34055>0) ddiffs34055 = new Date(dnows34055-dthens34055); else ddiffs34055 = new Date(dthens34055-dnows34055); gsecss34055 = Math.floor(ddiffs34055.valueOf()/1000); CountBacks34055(gsecss34055);