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 (LeadingZeros34119 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34119(secs) { if (secs < 0) { document.getElementById("cntdwns34119").innerHTML = FinishMessages34119; return; } DisplayStrs34119 = DisplayFormats34119.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34119 = DisplayStrs34119.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34119 = DisplayStrs34119.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34119 = DisplayStrs34119.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34119").innerHTML = DisplayStrs34119; if (CountActives34119) //alert(SetTimeOutPeriods34119); setTimeout("CountBacks34119(" + (secs+CountSteppers34119) + ")", SetTimeOutPeriods34119); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34119)=="undefined") BackColors34119 = ""; if (typeof(ForeColors34119)=="undefined") ForeColors34119= "white"; if (typeof(TargetDates34119)=="undefined") TargetDates34119 = "08/27/2026 10:00:00 PM"; if (typeof(DisplayFormats34119)=="undefined") DisplayFormats34119 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34119)=="undefined") CountActives34119 = true; if (typeof(FinishMessages34119)=="undefined") FinishMessages34119 = ""; if (typeof(CountSteppers34119)!="number") CountSteppers34119 = -1; if (typeof(LeadingZeros34119)=="undefined") LeadingZeros34119 = true; CountSteppers34119 = Math.ceil(CountSteppers34119); if (CountSteppers34119 == 0) CountActives34119 = false; var SetTimeOutPeriods34119 = (Math.abs(CountSteppers34119)-1)*1000 + 990; puti(BackColors34119, ForeColors34119); var dthens34119 = new Date(TargetDates34119); var dnows34119 = new Date("08/25/2026 1:47:54 AM"); if(CountSteppers34119>0) ddiffs34119 = new Date(dnows34119-dthens34119); else ddiffs34119 = new Date(dthens34119-dnows34119); gsecss34119 = Math.floor(ddiffs34119.valueOf()/1000); CountBacks34119(gsecss34119);