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 (LeadingZeros32124 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32124(secs) { if (secs < 0) { document.getElementById("cntdwns32124").innerHTML = FinishMessages32124; return; } DisplayStrs32124 = DisplayFormats32124.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32124 = DisplayStrs32124.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32124 = DisplayStrs32124.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32124 = DisplayStrs32124.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32124").innerHTML = DisplayStrs32124; if (CountActives32124) //alert(SetTimeOutPeriods32124); setTimeout("CountBacks32124(" + (secs+CountSteppers32124) + ")", SetTimeOutPeriods32124); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32124)=="undefined") BackColors32124 = ""; if (typeof(ForeColors32124)=="undefined") ForeColors32124= "white"; if (typeof(TargetDates32124)=="undefined") TargetDates32124 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32124)=="undefined") DisplayFormats32124 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32124)=="undefined") CountActives32124 = true; if (typeof(FinishMessages32124)=="undefined") FinishMessages32124 = ""; if (typeof(CountSteppers32124)!="number") CountSteppers32124 = -1; if (typeof(LeadingZeros32124)=="undefined") LeadingZeros32124 = true; CountSteppers32124 = Math.ceil(CountSteppers32124); if (CountSteppers32124 == 0) CountActives32124 = false; var SetTimeOutPeriods32124 = (Math.abs(CountSteppers32124)-1)*1000 + 990; puti(BackColors32124, ForeColors32124); var dthens32124 = new Date(TargetDates32124); var dnows32124 = new Date("04/18/2025 9:00:22 PM"); if(CountSteppers32124>0) ddiffs32124 = new Date(dnows32124-dthens32124); else ddiffs32124 = new Date(dthens32124-dnows32124); gsecss32124 = Math.floor(ddiffs32124.valueOf()/1000); CountBacks32124(gsecss32124);