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 (LeadingZeros32175 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32175(secs) { if (secs < 0) { document.getElementById("cntdwns32175").innerHTML = FinishMessages32175; return; } DisplayStrs32175 = DisplayFormats32175.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32175 = DisplayStrs32175.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32175 = DisplayStrs32175.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32175 = DisplayStrs32175.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32175").innerHTML = DisplayStrs32175; if (CountActives32175) //alert(SetTimeOutPeriods32175); setTimeout("CountBacks32175(" + (secs+CountSteppers32175) + ")", SetTimeOutPeriods32175); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32175)=="undefined") BackColors32175 = ""; if (typeof(ForeColors32175)=="undefined") ForeColors32175= "white"; if (typeof(TargetDates32175)=="undefined") TargetDates32175 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32175)=="undefined") DisplayFormats32175 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32175)=="undefined") CountActives32175 = true; if (typeof(FinishMessages32175)=="undefined") FinishMessages32175 = ""; if (typeof(CountSteppers32175)!="number") CountSteppers32175 = -1; if (typeof(LeadingZeros32175)=="undefined") LeadingZeros32175 = true; CountSteppers32175 = Math.ceil(CountSteppers32175); if (CountSteppers32175 == 0) CountActives32175 = false; var SetTimeOutPeriods32175 = (Math.abs(CountSteppers32175)-1)*1000 + 990; puti(BackColors32175, ForeColors32175); var dthens32175 = new Date(TargetDates32175); var dnows32175 = new Date("04/18/2025 9:00:22 PM"); if(CountSteppers32175>0) ddiffs32175 = new Date(dnows32175-dthens32175); else ddiffs32175 = new Date(dthens32175-dnows32175); gsecss32175 = Math.floor(ddiffs32175.valueOf()/1000); CountBacks32175(gsecss32175);