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 (LeadingZeros34022 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34022(secs) { if (secs < 0) { document.getElementById("cntdwns34022").innerHTML = FinishMessages34022; return; } DisplayStrs34022 = DisplayFormats34022.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34022 = DisplayStrs34022.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34022 = DisplayStrs34022.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34022 = DisplayStrs34022.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34022").innerHTML = DisplayStrs34022; if (CountActives34022) //alert(SetTimeOutPeriods34022); setTimeout("CountBacks34022(" + (secs+CountSteppers34022) + ")", SetTimeOutPeriods34022); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34022)=="undefined") BackColors34022 = ""; if (typeof(ForeColors34022)=="undefined") ForeColors34022= "white"; if (typeof(TargetDates34022)=="undefined") TargetDates34022 = "07/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34022)=="undefined") DisplayFormats34022 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34022)=="undefined") CountActives34022 = true; if (typeof(FinishMessages34022)=="undefined") FinishMessages34022 = ""; if (typeof(CountSteppers34022)!="number") CountSteppers34022 = -1; if (typeof(LeadingZeros34022)=="undefined") LeadingZeros34022 = true; CountSteppers34022 = Math.ceil(CountSteppers34022); if (CountSteppers34022 == 0) CountActives34022 = false; var SetTimeOutPeriods34022 = (Math.abs(CountSteppers34022)-1)*1000 + 990; puti(BackColors34022, ForeColors34022); var dthens34022 = new Date(TargetDates34022); var dnows34022 = new Date("07/10/2026 9:17:08 PM"); if(CountSteppers34022>0) ddiffs34022 = new Date(dnows34022-dthens34022); else ddiffs34022 = new Date(dthens34022-dnows34022); gsecss34022 = Math.floor(ddiffs34022.valueOf()/1000); CountBacks34022(gsecss34022);