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 (LeadingZeros32714 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32714(secs) { if (secs < 0) { document.getElementById("cntdwns32714").innerHTML = FinishMessages32714; return; } DisplayStrs32714 = DisplayFormats32714.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32714 = DisplayStrs32714.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32714 = DisplayStrs32714.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32714 = DisplayStrs32714.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32714").innerHTML = DisplayStrs32714; if (CountActives32714) //alert(SetTimeOutPeriods32714); setTimeout("CountBacks32714(" + (secs+CountSteppers32714) + ")", SetTimeOutPeriods32714); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32714)=="undefined") BackColors32714 = ""; if (typeof(ForeColors32714)=="undefined") ForeColors32714= "white"; if (typeof(TargetDates32714)=="undefined") TargetDates32714 = "08/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32714)=="undefined") DisplayFormats32714 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32714)=="undefined") CountActives32714 = true; if (typeof(FinishMessages32714)=="undefined") FinishMessages32714 = ""; if (typeof(CountSteppers32714)!="number") CountSteppers32714 = -1; if (typeof(LeadingZeros32714)=="undefined") LeadingZeros32714 = true; CountSteppers32714 = Math.ceil(CountSteppers32714); if (CountSteppers32714 == 0) CountActives32714 = false; var SetTimeOutPeriods32714 = (Math.abs(CountSteppers32714)-1)*1000 + 990; puti(BackColors32714, ForeColors32714); var dthens32714 = new Date(TargetDates32714); var dnows32714 = new Date("08/21/2025 1:11:23 PM"); if(CountSteppers32714>0) ddiffs32714 = new Date(dnows32714-dthens32714); else ddiffs32714 = new Date(dthens32714-dnows32714); gsecss32714 = Math.floor(ddiffs32714.valueOf()/1000); CountBacks32714(gsecss32714);