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 (LeadingZeros34112 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34112(secs) { if (secs < 0) { document.getElementById("cntdwns34112").innerHTML = FinishMessages34112; return; } DisplayStrs34112 = DisplayFormats34112.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34112 = DisplayStrs34112.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34112 = DisplayStrs34112.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34112 = DisplayStrs34112.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34112").innerHTML = DisplayStrs34112; if (CountActives34112) //alert(SetTimeOutPeriods34112); setTimeout("CountBacks34112(" + (secs+CountSteppers34112) + ")", SetTimeOutPeriods34112); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34112)=="undefined") BackColors34112 = ""; if (typeof(ForeColors34112)=="undefined") ForeColors34112= "white"; if (typeof(TargetDates34112)=="undefined") TargetDates34112 = "08/05/2026 10:00:00 PM"; if (typeof(DisplayFormats34112)=="undefined") DisplayFormats34112 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34112)=="undefined") CountActives34112 = true; if (typeof(FinishMessages34112)=="undefined") FinishMessages34112 = ""; if (typeof(CountSteppers34112)!="number") CountSteppers34112 = -1; if (typeof(LeadingZeros34112)=="undefined") LeadingZeros34112 = true; CountSteppers34112 = Math.ceil(CountSteppers34112); if (CountSteppers34112 == 0) CountActives34112 = false; var SetTimeOutPeriods34112 = (Math.abs(CountSteppers34112)-1)*1000 + 990; puti(BackColors34112, ForeColors34112); var dthens34112 = new Date(TargetDates34112); var dnows34112 = new Date("08/03/2026 9:32:10 AM"); if(CountSteppers34112>0) ddiffs34112 = new Date(dnows34112-dthens34112); else ddiffs34112 = new Date(dthens34112-dnows34112); gsecss34112 = Math.floor(ddiffs34112.valueOf()/1000); CountBacks34112(gsecss34112);