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 (LeadingZeros34199 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34199(secs) { if (secs < 0) { document.getElementById("cntdwns34199").innerHTML = FinishMessages34199; return; } DisplayStrs34199 = DisplayFormats34199.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34199 = DisplayStrs34199.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34199 = DisplayStrs34199.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34199 = DisplayStrs34199.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34199").innerHTML = DisplayStrs34199; if (CountActives34199) //alert(SetTimeOutPeriods34199); setTimeout("CountBacks34199(" + (secs+CountSteppers34199) + ")", SetTimeOutPeriods34199); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34199)=="undefined") BackColors34199 = ""; if (typeof(ForeColors34199)=="undefined") ForeColors34199= "white"; if (typeof(TargetDates34199)=="undefined") TargetDates34199 = "09/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34199)=="undefined") DisplayFormats34199 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34199)=="undefined") CountActives34199 = true; if (typeof(FinishMessages34199)=="undefined") FinishMessages34199 = ""; if (typeof(CountSteppers34199)!="number") CountSteppers34199 = -1; if (typeof(LeadingZeros34199)=="undefined") LeadingZeros34199 = true; CountSteppers34199 = Math.ceil(CountSteppers34199); if (CountSteppers34199 == 0) CountActives34199 = false; var SetTimeOutPeriods34199 = (Math.abs(CountSteppers34199)-1)*1000 + 990; puti(BackColors34199, ForeColors34199); var dthens34199 = new Date(TargetDates34199); var dnows34199 = new Date("09/09/2026 2:07:07 AM"); if(CountSteppers34199>0) ddiffs34199 = new Date(dnows34199-dthens34199); else ddiffs34199 = new Date(dthens34199-dnows34199); gsecss34199 = Math.floor(ddiffs34199.valueOf()/1000); CountBacks34199(gsecss34199);