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 (LeadingZeros34075 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34075(secs) { if (secs < 0) { document.getElementById("cntdwns34075").innerHTML = FinishMessages34075; return; } DisplayStrs34075 = DisplayFormats34075.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34075 = DisplayStrs34075.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34075 = DisplayStrs34075.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34075 = DisplayStrs34075.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34075").innerHTML = DisplayStrs34075; if (CountActives34075) //alert(SetTimeOutPeriods34075); setTimeout("CountBacks34075(" + (secs+CountSteppers34075) + ")", SetTimeOutPeriods34075); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34075)=="undefined") BackColors34075 = ""; if (typeof(ForeColors34075)=="undefined") ForeColors34075= "white"; if (typeof(TargetDates34075)=="undefined") TargetDates34075 = "08/04/2026 10:00:00 PM"; if (typeof(DisplayFormats34075)=="undefined") DisplayFormats34075 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34075)=="undefined") CountActives34075 = true; if (typeof(FinishMessages34075)=="undefined") FinishMessages34075 = ""; if (typeof(CountSteppers34075)!="number") CountSteppers34075 = -1; if (typeof(LeadingZeros34075)=="undefined") LeadingZeros34075 = true; CountSteppers34075 = Math.ceil(CountSteppers34075); if (CountSteppers34075 == 0) CountActives34075 = false; var SetTimeOutPeriods34075 = (Math.abs(CountSteppers34075)-1)*1000 + 990; puti(BackColors34075, ForeColors34075); var dthens34075 = new Date(TargetDates34075); var dnows34075 = new Date("08/02/2026 11:15:51 PM"); if(CountSteppers34075>0) ddiffs34075 = new Date(dnows34075-dthens34075); else ddiffs34075 = new Date(dthens34075-dnows34075); gsecss34075 = Math.floor(ddiffs34075.valueOf()/1000); CountBacks34075(gsecss34075);