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 (LeadingZeros34385 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34385(secs) { if (secs < 0) { document.getElementById("cntdwns34385").innerHTML = FinishMessages34385; return; } DisplayStrs34385 = DisplayFormats34385.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34385 = DisplayStrs34385.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34385 = DisplayStrs34385.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34385 = DisplayStrs34385.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34385").innerHTML = DisplayStrs34385; if (CountActives34385) //alert(SetTimeOutPeriods34385); setTimeout("CountBacks34385(" + (secs+CountSteppers34385) + ")", SetTimeOutPeriods34385); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34385)=="undefined") BackColors34385 = ""; if (typeof(ForeColors34385)=="undefined") ForeColors34385= "white"; if (typeof(TargetDates34385)=="undefined") TargetDates34385 = "11/06/2026 12:00:00 PM"; if (typeof(DisplayFormats34385)=="undefined") DisplayFormats34385 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34385)=="undefined") CountActives34385 = true; if (typeof(FinishMessages34385)=="undefined") FinishMessages34385 = ""; if (typeof(CountSteppers34385)!="number") CountSteppers34385 = -1; if (typeof(LeadingZeros34385)=="undefined") LeadingZeros34385 = true; CountSteppers34385 = Math.ceil(CountSteppers34385); if (CountSteppers34385 == 0) CountActives34385 = false; var SetTimeOutPeriods34385 = (Math.abs(CountSteppers34385)-1)*1000 + 990; puti(BackColors34385, ForeColors34385); var dthens34385 = new Date(TargetDates34385); var dnows34385 = new Date("11/04/2026 10:03:09 AM"); if(CountSteppers34385>0) ddiffs34385 = new Date(dnows34385-dthens34385); else ddiffs34385 = new Date(dthens34385-dnows34385); gsecss34385 = Math.floor(ddiffs34385.valueOf()/1000); CountBacks34385(gsecss34385);