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 (LeadingZeros32219 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32219(secs) { if (secs < 0) { document.getElementById("cntdwns32219").innerHTML = FinishMessages32219; return; } DisplayStrs32219 = DisplayFormats32219.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32219 = DisplayStrs32219.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32219 = DisplayStrs32219.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32219 = DisplayStrs32219.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32219").innerHTML = DisplayStrs32219; if (CountActives32219) //alert(SetTimeOutPeriods32219); setTimeout("CountBacks32219(" + (secs+CountSteppers32219) + ")", SetTimeOutPeriods32219); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32219)=="undefined") BackColors32219 = ""; if (typeof(ForeColors32219)=="undefined") ForeColors32219= "white"; if (typeof(TargetDates32219)=="undefined") TargetDates32219 = "05/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32219)=="undefined") DisplayFormats32219 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32219)=="undefined") CountActives32219 = true; if (typeof(FinishMessages32219)=="undefined") FinishMessages32219 = ""; if (typeof(CountSteppers32219)!="number") CountSteppers32219 = -1; if (typeof(LeadingZeros32219)=="undefined") LeadingZeros32219 = true; CountSteppers32219 = Math.ceil(CountSteppers32219); if (CountSteppers32219 == 0) CountActives32219 = false; var SetTimeOutPeriods32219 = (Math.abs(CountSteppers32219)-1)*1000 + 990; puti(BackColors32219, ForeColors32219); var dthens32219 = new Date(TargetDates32219); var dnows32219 = new Date("05/02/2025 3:55:08 AM"); if(CountSteppers32219>0) ddiffs32219 = new Date(dnows32219-dthens32219); else ddiffs32219 = new Date(dthens32219-dnows32219); gsecss32219 = Math.floor(ddiffs32219.valueOf()/1000); CountBacks32219(gsecss32219);