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 (LeadingZeros34067 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34067(secs) { if (secs < 0) { document.getElementById("cntdwns34067").innerHTML = FinishMessages34067; return; } DisplayStrs34067 = DisplayFormats34067.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34067 = DisplayStrs34067.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34067 = DisplayStrs34067.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34067 = DisplayStrs34067.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34067").innerHTML = DisplayStrs34067; if (CountActives34067) //alert(SetTimeOutPeriods34067); setTimeout("CountBacks34067(" + (secs+CountSteppers34067) + ")", SetTimeOutPeriods34067); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34067)=="undefined") BackColors34067 = ""; if (typeof(ForeColors34067)=="undefined") ForeColors34067= "white"; if (typeof(TargetDates34067)=="undefined") TargetDates34067 = "07/29/2026 11:00:00 PM"; if (typeof(DisplayFormats34067)=="undefined") DisplayFormats34067 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34067)=="undefined") CountActives34067 = true; if (typeof(FinishMessages34067)=="undefined") FinishMessages34067 = ""; if (typeof(CountSteppers34067)!="number") CountSteppers34067 = -1; if (typeof(LeadingZeros34067)=="undefined") LeadingZeros34067 = true; CountSteppers34067 = Math.ceil(CountSteppers34067); if (CountSteppers34067 == 0) CountActives34067 = false; var SetTimeOutPeriods34067 = (Math.abs(CountSteppers34067)-1)*1000 + 990; puti(BackColors34067, ForeColors34067); var dthens34067 = new Date(TargetDates34067); var dnows34067 = new Date("07/26/2026 7:29:51 PM"); if(CountSteppers34067>0) ddiffs34067 = new Date(dnows34067-dthens34067); else ddiffs34067 = new Date(dthens34067-dnows34067); gsecss34067 = Math.floor(ddiffs34067.valueOf()/1000); CountBacks34067(gsecss34067);