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 (LeadingZeros32019 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32019(secs) { if (secs < 0) { document.getElementById("cntdwns32019").innerHTML = FinishMessages32019; return; } DisplayStrs32019 = DisplayFormats32019.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32019 = DisplayStrs32019.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32019 = DisplayStrs32019.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32019 = DisplayStrs32019.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32019").innerHTML = DisplayStrs32019; if (CountActives32019) //alert(SetTimeOutPeriods32019); setTimeout("CountBacks32019(" + (secs+CountSteppers32019) + ")", SetTimeOutPeriods32019); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32019)=="undefined") BackColors32019 = ""; if (typeof(ForeColors32019)=="undefined") ForeColors32019= "white"; if (typeof(TargetDates32019)=="undefined") TargetDates32019 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32019)=="undefined") DisplayFormats32019 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32019)=="undefined") CountActives32019 = true; if (typeof(FinishMessages32019)=="undefined") FinishMessages32019 = ""; if (typeof(CountSteppers32019)!="number") CountSteppers32019 = -1; if (typeof(LeadingZeros32019)=="undefined") LeadingZeros32019 = true; CountSteppers32019 = Math.ceil(CountSteppers32019); if (CountSteppers32019 == 0) CountActives32019 = false; var SetTimeOutPeriods32019 = (Math.abs(CountSteppers32019)-1)*1000 + 990; puti(BackColors32019, ForeColors32019); var dthens32019 = new Date(TargetDates32019); var dnows32019 = new Date("03/29/2025 4:18:11 PM"); if(CountSteppers32019>0) ddiffs32019 = new Date(dnows32019-dthens32019); else ddiffs32019 = new Date(dthens32019-dnows32019); gsecss32019 = Math.floor(ddiffs32019.valueOf()/1000); CountBacks32019(gsecss32019);