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 (LeadingZeros34151 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34151(secs) { if (secs < 0) { document.getElementById("cntdwns34151").innerHTML = FinishMessages34151; return; } DisplayStrs34151 = DisplayFormats34151.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34151 = DisplayStrs34151.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34151 = DisplayStrs34151.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34151 = DisplayStrs34151.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34151").innerHTML = DisplayStrs34151; if (CountActives34151) //alert(SetTimeOutPeriods34151); setTimeout("CountBacks34151(" + (secs+CountSteppers34151) + ")", SetTimeOutPeriods34151); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34151)=="undefined") BackColors34151 = ""; if (typeof(ForeColors34151)=="undefined") ForeColors34151= "white"; if (typeof(TargetDates34151)=="undefined") TargetDates34151 = "09/11/2026 10:00:00 PM"; if (typeof(DisplayFormats34151)=="undefined") DisplayFormats34151 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34151)=="undefined") CountActives34151 = true; if (typeof(FinishMessages34151)=="undefined") FinishMessages34151 = ""; if (typeof(CountSteppers34151)!="number") CountSteppers34151 = -1; if (typeof(LeadingZeros34151)=="undefined") LeadingZeros34151 = true; CountSteppers34151 = Math.ceil(CountSteppers34151); if (CountSteppers34151 == 0) CountActives34151 = false; var SetTimeOutPeriods34151 = (Math.abs(CountSteppers34151)-1)*1000 + 990; puti(BackColors34151, ForeColors34151); var dthens34151 = new Date(TargetDates34151); var dnows34151 = new Date("09/09/2026 10:35:36 AM"); if(CountSteppers34151>0) ddiffs34151 = new Date(dnows34151-dthens34151); else ddiffs34151 = new Date(dthens34151-dnows34151); gsecss34151 = Math.floor(ddiffs34151.valueOf()/1000); CountBacks34151(gsecss34151);