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 (LeadingZeros34276 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34276(secs) { if (secs < 0) { document.getElementById("cntdwns34276").innerHTML = FinishMessages34276; return; } DisplayStrs34276 = DisplayFormats34276.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34276 = DisplayStrs34276.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34276 = DisplayStrs34276.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34276 = DisplayStrs34276.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34276").innerHTML = DisplayStrs34276; if (CountActives34276) //alert(SetTimeOutPeriods34276); setTimeout("CountBacks34276(" + (secs+CountSteppers34276) + ")", SetTimeOutPeriods34276); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34276)=="undefined") BackColors34276 = ""; if (typeof(ForeColors34276)=="undefined") ForeColors34276= "white"; if (typeof(TargetDates34276)=="undefined") TargetDates34276 = "10/06/2026 10:00:00 PM"; if (typeof(DisplayFormats34276)=="undefined") DisplayFormats34276 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34276)=="undefined") CountActives34276 = true; if (typeof(FinishMessages34276)=="undefined") FinishMessages34276 = ""; if (typeof(CountSteppers34276)!="number") CountSteppers34276 = -1; if (typeof(LeadingZeros34276)=="undefined") LeadingZeros34276 = true; CountSteppers34276 = Math.ceil(CountSteppers34276); if (CountSteppers34276 == 0) CountActives34276 = false; var SetTimeOutPeriods34276 = (Math.abs(CountSteppers34276)-1)*1000 + 990; puti(BackColors34276, ForeColors34276); var dthens34276 = new Date(TargetDates34276); var dnows34276 = new Date("10/03/2026 9:52:26 AM"); if(CountSteppers34276>0) ddiffs34276 = new Date(dnows34276-dthens34276); else ddiffs34276 = new Date(dthens34276-dnows34276); gsecss34276 = Math.floor(ddiffs34276.valueOf()/1000); CountBacks34276(gsecss34276);