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 (LeadingZeros34063 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34063(secs) { if (secs < 0) { document.getElementById("cntdwns34063").innerHTML = FinishMessages34063; return; } DisplayStrs34063 = DisplayFormats34063.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34063 = DisplayStrs34063.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34063 = DisplayStrs34063.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34063 = DisplayStrs34063.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34063").innerHTML = DisplayStrs34063; if (CountActives34063) //alert(SetTimeOutPeriods34063); setTimeout("CountBacks34063(" + (secs+CountSteppers34063) + ")", SetTimeOutPeriods34063); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34063)=="undefined") BackColors34063 = ""; if (typeof(ForeColors34063)=="undefined") ForeColors34063= "white"; if (typeof(TargetDates34063)=="undefined") TargetDates34063 = "07/12/2026 10:00:00 PM"; if (typeof(DisplayFormats34063)=="undefined") DisplayFormats34063 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34063)=="undefined") CountActives34063 = true; if (typeof(FinishMessages34063)=="undefined") FinishMessages34063 = ""; if (typeof(CountSteppers34063)!="number") CountSteppers34063 = -1; if (typeof(LeadingZeros34063)=="undefined") LeadingZeros34063 = true; CountSteppers34063 = Math.ceil(CountSteppers34063); if (CountSteppers34063 == 0) CountActives34063 = false; var SetTimeOutPeriods34063 = (Math.abs(CountSteppers34063)-1)*1000 + 990; puti(BackColors34063, ForeColors34063); var dthens34063 = new Date(TargetDates34063); var dnows34063 = new Date("07/10/2026 10:42:01 AM"); if(CountSteppers34063>0) ddiffs34063 = new Date(dnows34063-dthens34063); else ddiffs34063 = new Date(dthens34063-dnows34063); gsecss34063 = Math.floor(ddiffs34063.valueOf()/1000); CountBacks34063(gsecss34063);