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 (LeadingZeros34409 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34409(secs) { if (secs < 0) { document.getElementById("cntdwns34409").innerHTML = FinishMessages34409; return; } DisplayStrs34409 = DisplayFormats34409.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34409 = DisplayStrs34409.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34409 = DisplayStrs34409.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34409 = DisplayStrs34409.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34409").innerHTML = DisplayStrs34409; if (CountActives34409) //alert(SetTimeOutPeriods34409); setTimeout("CountBacks34409(" + (secs+CountSteppers34409) + ")", SetTimeOutPeriods34409); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34409)=="undefined") BackColors34409 = ""; if (typeof(ForeColors34409)=="undefined") ForeColors34409= "white"; if (typeof(TargetDates34409)=="undefined") TargetDates34409 = "11/07/2026 2:00:00 PM"; if (typeof(DisplayFormats34409)=="undefined") DisplayFormats34409 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34409)=="undefined") CountActives34409 = true; if (typeof(FinishMessages34409)=="undefined") FinishMessages34409 = ""; if (typeof(CountSteppers34409)!="number") CountSteppers34409 = -1; if (typeof(LeadingZeros34409)=="undefined") LeadingZeros34409 = true; CountSteppers34409 = Math.ceil(CountSteppers34409); if (CountSteppers34409 == 0) CountActives34409 = false; var SetTimeOutPeriods34409 = (Math.abs(CountSteppers34409)-1)*1000 + 990; puti(BackColors34409, ForeColors34409); var dthens34409 = new Date(TargetDates34409); var dnows34409 = new Date("11/05/2026 10:20:45 AM"); if(CountSteppers34409>0) ddiffs34409 = new Date(dnows34409-dthens34409); else ddiffs34409 = new Date(dthens34409-dnows34409); gsecss34409 = Math.floor(ddiffs34409.valueOf()/1000); CountBacks34409(gsecss34409);