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 (LeadingZeros34305 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34305(secs) { if (secs < 0) { document.getElementById("cntdwns34305").innerHTML = FinishMessages34305; return; } DisplayStrs34305 = DisplayFormats34305.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34305 = DisplayStrs34305.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34305 = DisplayStrs34305.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34305 = DisplayStrs34305.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34305").innerHTML = DisplayStrs34305; if (CountActives34305) //alert(SetTimeOutPeriods34305); setTimeout("CountBacks34305(" + (secs+CountSteppers34305) + ")", SetTimeOutPeriods34305); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34305)=="undefined") BackColors34305 = ""; if (typeof(ForeColors34305)=="undefined") ForeColors34305= "white"; if (typeof(TargetDates34305)=="undefined") TargetDates34305 = "11/29/2026 12:00:00 PM"; if (typeof(DisplayFormats34305)=="undefined") DisplayFormats34305 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34305)=="undefined") CountActives34305 = true; if (typeof(FinishMessages34305)=="undefined") FinishMessages34305 = ""; if (typeof(CountSteppers34305)!="number") CountSteppers34305 = -1; if (typeof(LeadingZeros34305)=="undefined") LeadingZeros34305 = true; CountSteppers34305 = Math.ceil(CountSteppers34305); if (CountSteppers34305 == 0) CountActives34305 = false; var SetTimeOutPeriods34305 = (Math.abs(CountSteppers34305)-1)*1000 + 990; puti(BackColors34305, ForeColors34305); var dthens34305 = new Date(TargetDates34305); var dnows34305 = new Date("11/22/2026 1:58:46 PM"); if(CountSteppers34305>0) ddiffs34305 = new Date(dnows34305-dthens34305); else ddiffs34305 = new Date(dthens34305-dnows34305); gsecss34305 = Math.floor(ddiffs34305.valueOf()/1000); CountBacks34305(gsecss34305);