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 (LeadingZeros34281 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34281(secs) { if (secs < 0) { document.getElementById("cntdwns34281").innerHTML = FinishMessages34281; return; } DisplayStrs34281 = DisplayFormats34281.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34281 = DisplayStrs34281.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34281 = DisplayStrs34281.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34281 = DisplayStrs34281.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34281").innerHTML = DisplayStrs34281; if (CountActives34281) //alert(SetTimeOutPeriods34281); setTimeout("CountBacks34281(" + (secs+CountSteppers34281) + ")", SetTimeOutPeriods34281); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34281)=="undefined") BackColors34281 = ""; if (typeof(ForeColors34281)=="undefined") ForeColors34281= "white"; if (typeof(TargetDates34281)=="undefined") TargetDates34281 = "11/23/2026 3:00:00 PM"; if (typeof(DisplayFormats34281)=="undefined") DisplayFormats34281 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34281)=="undefined") CountActives34281 = true; if (typeof(FinishMessages34281)=="undefined") FinishMessages34281 = ""; if (typeof(CountSteppers34281)!="number") CountSteppers34281 = -1; if (typeof(LeadingZeros34281)=="undefined") LeadingZeros34281 = true; CountSteppers34281 = Math.ceil(CountSteppers34281); if (CountSteppers34281 == 0) CountActives34281 = false; var SetTimeOutPeriods34281 = (Math.abs(CountSteppers34281)-1)*1000 + 990; puti(BackColors34281, ForeColors34281); var dthens34281 = new Date(TargetDates34281); var dnows34281 = new Date("09/23/2026 10:54:44 PM"); if(CountSteppers34281>0) ddiffs34281 = new Date(dnows34281-dthens34281); else ddiffs34281 = new Date(dthens34281-dnows34281); gsecss34281 = Math.floor(ddiffs34281.valueOf()/1000); CountBacks34281(gsecss34281);