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 (LeadingZeros34473 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34473(secs) { if (secs < 0) { document.getElementById("cntdwns34473").innerHTML = FinishMessages34473; return; } DisplayStrs34473 = DisplayFormats34473.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34473 = DisplayStrs34473.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34473 = DisplayStrs34473.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34473 = DisplayStrs34473.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34473").innerHTML = DisplayStrs34473; if (CountActives34473) //alert(SetTimeOutPeriods34473); setTimeout("CountBacks34473(" + (secs+CountSteppers34473) + ")", SetTimeOutPeriods34473); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34473)=="undefined") BackColors34473 = ""; if (typeof(ForeColors34473)=="undefined") ForeColors34473= "white"; if (typeof(TargetDates34473)=="undefined") TargetDates34473 = "12/02/2026 12:00:00 PM"; if (typeof(DisplayFormats34473)=="undefined") DisplayFormats34473 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34473)=="undefined") CountActives34473 = true; if (typeof(FinishMessages34473)=="undefined") FinishMessages34473 = ""; if (typeof(CountSteppers34473)!="number") CountSteppers34473 = -1; if (typeof(LeadingZeros34473)=="undefined") LeadingZeros34473 = true; CountSteppers34473 = Math.ceil(CountSteppers34473); if (CountSteppers34473 == 0) CountActives34473 = false; var SetTimeOutPeriods34473 = (Math.abs(CountSteppers34473)-1)*1000 + 990; puti(BackColors34473, ForeColors34473); var dthens34473 = new Date(TargetDates34473); var dnows34473 = new Date("11/29/2026 7:56:16 PM"); if(CountSteppers34473>0) ddiffs34473 = new Date(dnows34473-dthens34473); else ddiffs34473 = new Date(dthens34473-dnows34473); gsecss34473 = Math.floor(ddiffs34473.valueOf()/1000); CountBacks34473(gsecss34473);