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 (LeadingZeros34004 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34004(secs) { if (secs < 0) { document.getElementById("cntdwns34004").innerHTML = FinishMessages34004; return; } DisplayStrs34004 = DisplayFormats34004.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34004 = DisplayStrs34004.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34004 = DisplayStrs34004.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34004 = DisplayStrs34004.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34004").innerHTML = DisplayStrs34004; if (CountActives34004) //alert(SetTimeOutPeriods34004); setTimeout("CountBacks34004(" + (secs+CountSteppers34004) + ")", SetTimeOutPeriods34004); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34004)=="undefined") BackColors34004 = ""; if (typeof(ForeColors34004)=="undefined") ForeColors34004= "white"; if (typeof(TargetDates34004)=="undefined") TargetDates34004 = "07/01/2026 10:00:00 PM"; if (typeof(DisplayFormats34004)=="undefined") DisplayFormats34004 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34004)=="undefined") CountActives34004 = true; if (typeof(FinishMessages34004)=="undefined") FinishMessages34004 = ""; if (typeof(CountSteppers34004)!="number") CountSteppers34004 = -1; if (typeof(LeadingZeros34004)=="undefined") LeadingZeros34004 = true; CountSteppers34004 = Math.ceil(CountSteppers34004); if (CountSteppers34004 == 0) CountActives34004 = false; var SetTimeOutPeriods34004 = (Math.abs(CountSteppers34004)-1)*1000 + 990; puti(BackColors34004, ForeColors34004); var dthens34004 = new Date(TargetDates34004); var dnows34004 = new Date("06/28/2026 4:17:06 PM"); if(CountSteppers34004>0) ddiffs34004 = new Date(dnows34004-dthens34004); else ddiffs34004 = new Date(dthens34004-dnows34004); gsecss34004 = Math.floor(ddiffs34004.valueOf()/1000); CountBacks34004(gsecss34004);