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 (LeadingZeros34408 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34408(secs) { if (secs < 0) { document.getElementById("cntdwns34408").innerHTML = FinishMessages34408; return; } DisplayStrs34408 = DisplayFormats34408.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34408 = DisplayStrs34408.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34408 = DisplayStrs34408.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34408 = DisplayStrs34408.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34408").innerHTML = DisplayStrs34408; if (CountActives34408) //alert(SetTimeOutPeriods34408); setTimeout("CountBacks34408(" + (secs+CountSteppers34408) + ")", SetTimeOutPeriods34408); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34408)=="undefined") BackColors34408 = ""; if (typeof(ForeColors34408)=="undefined") ForeColors34408= "white"; if (typeof(TargetDates34408)=="undefined") TargetDates34408 = "11/09/2026 8:00:00 AM"; if (typeof(DisplayFormats34408)=="undefined") DisplayFormats34408 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34408)=="undefined") CountActives34408 = true; if (typeof(FinishMessages34408)=="undefined") FinishMessages34408 = ""; if (typeof(CountSteppers34408)!="number") CountSteppers34408 = -1; if (typeof(LeadingZeros34408)=="undefined") LeadingZeros34408 = true; CountSteppers34408 = Math.ceil(CountSteppers34408); if (CountSteppers34408 == 0) CountActives34408 = false; var SetTimeOutPeriods34408 = (Math.abs(CountSteppers34408)-1)*1000 + 990; puti(BackColors34408, ForeColors34408); var dthens34408 = new Date(TargetDates34408); var dnows34408 = new Date("11/22/2026 11:12:25 PM"); if(CountSteppers34408>0) ddiffs34408 = new Date(dnows34408-dthens34408); else ddiffs34408 = new Date(dthens34408-dnows34408); gsecss34408 = Math.floor(ddiffs34408.valueOf()/1000); CountBacks34408(gsecss34408);