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 (LeadingZeros34364 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34364(secs) { if (secs < 0) { document.getElementById("cntdwns34364").innerHTML = FinishMessages34364; return; } DisplayStrs34364 = DisplayFormats34364.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34364 = DisplayStrs34364.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34364 = DisplayStrs34364.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34364 = DisplayStrs34364.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34364").innerHTML = DisplayStrs34364; if (CountActives34364) //alert(SetTimeOutPeriods34364); setTimeout("CountBacks34364(" + (secs+CountSteppers34364) + ")", SetTimeOutPeriods34364); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34364)=="undefined") BackColors34364 = ""; if (typeof(ForeColors34364)=="undefined") ForeColors34364= "white"; if (typeof(TargetDates34364)=="undefined") TargetDates34364 = "11/13/2026 10:00:00 PM"; if (typeof(DisplayFormats34364)=="undefined") DisplayFormats34364 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34364)=="undefined") CountActives34364 = true; if (typeof(FinishMessages34364)=="undefined") FinishMessages34364 = ""; if (typeof(CountSteppers34364)!="number") CountSteppers34364 = -1; if (typeof(LeadingZeros34364)=="undefined") LeadingZeros34364 = true; CountSteppers34364 = Math.ceil(CountSteppers34364); if (CountSteppers34364 == 0) CountActives34364 = false; var SetTimeOutPeriods34364 = (Math.abs(CountSteppers34364)-1)*1000 + 990; puti(BackColors34364, ForeColors34364); var dthens34364 = new Date(TargetDates34364); var dnows34364 = new Date("11/11/2026 11:01:40 AM"); if(CountSteppers34364>0) ddiffs34364 = new Date(dnows34364-dthens34364); else ddiffs34364 = new Date(dthens34364-dnows34364); gsecss34364 = Math.floor(ddiffs34364.valueOf()/1000); CountBacks34364(gsecss34364);