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 (LeadingZeros34363 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34363(secs) { if (secs < 0) { document.getElementById("cntdwns34363").innerHTML = FinishMessages34363; return; } DisplayStrs34363 = DisplayFormats34363.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34363 = DisplayStrs34363.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34363 = DisplayStrs34363.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34363 = DisplayStrs34363.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34363").innerHTML = DisplayStrs34363; if (CountActives34363) //alert(SetTimeOutPeriods34363); setTimeout("CountBacks34363(" + (secs+CountSteppers34363) + ")", SetTimeOutPeriods34363); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34363)=="undefined") BackColors34363 = ""; if (typeof(ForeColors34363)=="undefined") ForeColors34363= "white"; if (typeof(TargetDates34363)=="undefined") TargetDates34363 = "11/13/2026 10:00:00 PM"; if (typeof(DisplayFormats34363)=="undefined") DisplayFormats34363 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34363)=="undefined") CountActives34363 = true; if (typeof(FinishMessages34363)=="undefined") FinishMessages34363 = ""; if (typeof(CountSteppers34363)!="number") CountSteppers34363 = -1; if (typeof(LeadingZeros34363)=="undefined") LeadingZeros34363 = true; CountSteppers34363 = Math.ceil(CountSteppers34363); if (CountSteppers34363 == 0) CountActives34363 = false; var SetTimeOutPeriods34363 = (Math.abs(CountSteppers34363)-1)*1000 + 990; puti(BackColors34363, ForeColors34363); var dthens34363 = new Date(TargetDates34363); var dnows34363 = new Date("11/11/2026 11:01:40 AM"); if(CountSteppers34363>0) ddiffs34363 = new Date(dnows34363-dthens34363); else ddiffs34363 = new Date(dthens34363-dnows34363); gsecss34363 = Math.floor(ddiffs34363.valueOf()/1000); CountBacks34363(gsecss34363);