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 (LeadingZeros34027 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34027(secs) { if (secs < 0) { document.getElementById("cntdwns34027").innerHTML = FinishMessages34027; return; } DisplayStrs34027 = DisplayFormats34027.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34027 = DisplayStrs34027.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34027 = DisplayStrs34027.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34027 = DisplayStrs34027.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34027").innerHTML = DisplayStrs34027; if (CountActives34027) //alert(SetTimeOutPeriods34027); setTimeout("CountBacks34027(" + (secs+CountSteppers34027) + ")", SetTimeOutPeriods34027); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34027)=="undefined") BackColors34027 = ""; if (typeof(ForeColors34027)=="undefined") ForeColors34027= "white"; if (typeof(TargetDates34027)=="undefined") TargetDates34027 = "07/06/2026 10:00:00 PM"; if (typeof(DisplayFormats34027)=="undefined") DisplayFormats34027 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34027)=="undefined") CountActives34027 = true; if (typeof(FinishMessages34027)=="undefined") FinishMessages34027 = ""; if (typeof(CountSteppers34027)!="number") CountSteppers34027 = -1; if (typeof(LeadingZeros34027)=="undefined") LeadingZeros34027 = true; CountSteppers34027 = Math.ceil(CountSteppers34027); if (CountSteppers34027 == 0) CountActives34027 = false; var SetTimeOutPeriods34027 = (Math.abs(CountSteppers34027)-1)*1000 + 990; puti(BackColors34027, ForeColors34027); var dthens34027 = new Date(TargetDates34027); var dnows34027 = new Date("07/04/2026 3:34:31 PM"); if(CountSteppers34027>0) ddiffs34027 = new Date(dnows34027-dthens34027); else ddiffs34027 = new Date(dthens34027-dnows34027); gsecss34027 = Math.floor(ddiffs34027.valueOf()/1000); CountBacks34027(gsecss34027);