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 (LeadingZeros34493 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34493(secs) { if (secs < 0) { document.getElementById("cntdwns34493").innerHTML = FinishMessages34493; return; } DisplayStrs34493 = DisplayFormats34493.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34493 = DisplayStrs34493.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34493 = DisplayStrs34493.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34493 = DisplayStrs34493.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34493").innerHTML = DisplayStrs34493; if (CountActives34493) //alert(SetTimeOutPeriods34493); setTimeout("CountBacks34493(" + (secs+CountSteppers34493) + ")", SetTimeOutPeriods34493); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34493)=="undefined") BackColors34493 = ""; if (typeof(ForeColors34493)=="undefined") ForeColors34493= "white"; if (typeof(TargetDates34493)=="undefined") TargetDates34493 = "12/06/2026 8:00:00 AM"; if (typeof(DisplayFormats34493)=="undefined") DisplayFormats34493 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34493)=="undefined") CountActives34493 = true; if (typeof(FinishMessages34493)=="undefined") FinishMessages34493 = ""; if (typeof(CountSteppers34493)!="number") CountSteppers34493 = -1; if (typeof(LeadingZeros34493)=="undefined") LeadingZeros34493 = true; CountSteppers34493 = Math.ceil(CountSteppers34493); if (CountSteppers34493 == 0) CountActives34493 = false; var SetTimeOutPeriods34493 = (Math.abs(CountSteppers34493)-1)*1000 + 990; puti(BackColors34493, ForeColors34493); var dthens34493 = new Date(TargetDates34493); var dnows34493 = new Date("12/03/2026 7:54:39 AM"); if(CountSteppers34493>0) ddiffs34493 = new Date(dnows34493-dthens34493); else ddiffs34493 = new Date(dthens34493-dnows34493); gsecss34493 = Math.floor(ddiffs34493.valueOf()/1000); CountBacks34493(gsecss34493);