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 (LeadingZeros34047 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34047(secs) { if (secs < 0) { document.getElementById("cntdwns34047").innerHTML = FinishMessages34047; return; } DisplayStrs34047 = DisplayFormats34047.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34047 = DisplayStrs34047.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34047 = DisplayStrs34047.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34047 = DisplayStrs34047.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34047").innerHTML = DisplayStrs34047; if (CountActives34047) //alert(SetTimeOutPeriods34047); setTimeout("CountBacks34047(" + (secs+CountSteppers34047) + ")", SetTimeOutPeriods34047); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34047)=="undefined") BackColors34047 = ""; if (typeof(ForeColors34047)=="undefined") ForeColors34047= "white"; if (typeof(TargetDates34047)=="undefined") TargetDates34047 = "07/24/2026 10:00:00 PM"; if (typeof(DisplayFormats34047)=="undefined") DisplayFormats34047 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34047)=="undefined") CountActives34047 = true; if (typeof(FinishMessages34047)=="undefined") FinishMessages34047 = ""; if (typeof(CountSteppers34047)!="number") CountSteppers34047 = -1; if (typeof(LeadingZeros34047)=="undefined") LeadingZeros34047 = true; CountSteppers34047 = Math.ceil(CountSteppers34047); if (CountSteppers34047 == 0) CountActives34047 = false; var SetTimeOutPeriods34047 = (Math.abs(CountSteppers34047)-1)*1000 + 990; puti(BackColors34047, ForeColors34047); var dthens34047 = new Date(TargetDates34047); var dnows34047 = new Date("07/21/2026 12:56:03 PM"); if(CountSteppers34047>0) ddiffs34047 = new Date(dnows34047-dthens34047); else ddiffs34047 = new Date(dthens34047-dnows34047); gsecss34047 = Math.floor(ddiffs34047.valueOf()/1000); CountBacks34047(gsecss34047);