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 (LeadingZeros34111 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34111(secs) { if (secs < 0) { document.getElementById("cntdwns34111").innerHTML = FinishMessages34111; return; } DisplayStrs34111 = DisplayFormats34111.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34111 = DisplayStrs34111.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34111 = DisplayStrs34111.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34111 = DisplayStrs34111.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34111").innerHTML = DisplayStrs34111; if (CountActives34111) //alert(SetTimeOutPeriods34111); setTimeout("CountBacks34111(" + (secs+CountSteppers34111) + ")", SetTimeOutPeriods34111); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34111)=="undefined") BackColors34111 = ""; if (typeof(ForeColors34111)=="undefined") ForeColors34111= "white"; if (typeof(TargetDates34111)=="undefined") TargetDates34111 = "08/05/2026 10:00:00 PM"; if (typeof(DisplayFormats34111)=="undefined") DisplayFormats34111 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34111)=="undefined") CountActives34111 = true; if (typeof(FinishMessages34111)=="undefined") FinishMessages34111 = ""; if (typeof(CountSteppers34111)!="number") CountSteppers34111 = -1; if (typeof(LeadingZeros34111)=="undefined") LeadingZeros34111 = true; CountSteppers34111 = Math.ceil(CountSteppers34111); if (CountSteppers34111 == 0) CountActives34111 = false; var SetTimeOutPeriods34111 = (Math.abs(CountSteppers34111)-1)*1000 + 990; puti(BackColors34111, ForeColors34111); var dthens34111 = new Date(TargetDates34111); var dnows34111 = new Date("08/03/2026 9:31:14 AM"); if(CountSteppers34111>0) ddiffs34111 = new Date(dnows34111-dthens34111); else ddiffs34111 = new Date(dthens34111-dnows34111); gsecss34111 = Math.floor(ddiffs34111.valueOf()/1000); CountBacks34111(gsecss34111);