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 (LeadingZeros34227 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34227(secs) { if (secs < 0) { document.getElementById("cntdwns34227").innerHTML = FinishMessages34227; return; } DisplayStrs34227 = DisplayFormats34227.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34227 = DisplayStrs34227.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34227 = DisplayStrs34227.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34227 = DisplayStrs34227.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34227").innerHTML = DisplayStrs34227; if (CountActives34227) //alert(SetTimeOutPeriods34227); setTimeout("CountBacks34227(" + (secs+CountSteppers34227) + ")", SetTimeOutPeriods34227); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34227)=="undefined") BackColors34227 = ""; if (typeof(ForeColors34227)=="undefined") ForeColors34227= "white"; if (typeof(TargetDates34227)=="undefined") TargetDates34227 = "10/11/2026 11:00:00 PM"; if (typeof(DisplayFormats34227)=="undefined") DisplayFormats34227 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34227)=="undefined") CountActives34227 = true; if (typeof(FinishMessages34227)=="undefined") FinishMessages34227 = ""; if (typeof(CountSteppers34227)!="number") CountSteppers34227 = -1; if (typeof(LeadingZeros34227)=="undefined") LeadingZeros34227 = true; CountSteppers34227 = Math.ceil(CountSteppers34227); if (CountSteppers34227 == 0) CountActives34227 = false; var SetTimeOutPeriods34227 = (Math.abs(CountSteppers34227)-1)*1000 + 990; puti(BackColors34227, ForeColors34227); var dthens34227 = new Date(TargetDates34227); var dnows34227 = new Date("10/08/2026 11:50:57 AM"); if(CountSteppers34227>0) ddiffs34227 = new Date(dnows34227-dthens34227); else ddiffs34227 = new Date(dthens34227-dnows34227); gsecss34227 = Math.floor(ddiffs34227.valueOf()/1000); CountBacks34227(gsecss34227);