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 (LeadingZeros34294 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34294(secs) { if (secs < 0) { document.getElementById("cntdwns34294").innerHTML = FinishMessages34294; return; } DisplayStrs34294 = DisplayFormats34294.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34294 = DisplayStrs34294.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34294 = DisplayStrs34294.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34294 = DisplayStrs34294.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34294").innerHTML = DisplayStrs34294; if (CountActives34294) //alert(SetTimeOutPeriods34294); setTimeout("CountBacks34294(" + (secs+CountSteppers34294) + ")", SetTimeOutPeriods34294); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34294)=="undefined") BackColors34294 = ""; if (typeof(ForeColors34294)=="undefined") ForeColors34294= "white"; if (typeof(TargetDates34294)=="undefined") TargetDates34294 = "11/05/2026 10:00:00 PM"; if (typeof(DisplayFormats34294)=="undefined") DisplayFormats34294 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34294)=="undefined") CountActives34294 = true; if (typeof(FinishMessages34294)=="undefined") FinishMessages34294 = ""; if (typeof(CountSteppers34294)!="number") CountSteppers34294 = -1; if (typeof(LeadingZeros34294)=="undefined") LeadingZeros34294 = true; CountSteppers34294 = Math.ceil(CountSteppers34294); if (CountSteppers34294 == 0) CountActives34294 = false; var SetTimeOutPeriods34294 = (Math.abs(CountSteppers34294)-1)*1000 + 990; puti(BackColors34294, ForeColors34294); var dthens34294 = new Date(TargetDates34294); var dnows34294 = new Date("11/03/2026 8:40:55 AM"); if(CountSteppers34294>0) ddiffs34294 = new Date(dnows34294-dthens34294); else ddiffs34294 = new Date(dthens34294-dnows34294); gsecss34294 = Math.floor(ddiffs34294.valueOf()/1000); CountBacks34294(gsecss34294);