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 (LeadingZeros32253 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32253(secs) { if (secs < 0) { document.getElementById("cntdwns32253").innerHTML = FinishMessages32253; return; } DisplayStrs32253 = DisplayFormats32253.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32253 = DisplayStrs32253.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32253 = DisplayStrs32253.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32253 = DisplayStrs32253.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32253").innerHTML = DisplayStrs32253; if (CountActives32253) //alert(SetTimeOutPeriods32253); setTimeout("CountBacks32253(" + (secs+CountSteppers32253) + ")", SetTimeOutPeriods32253); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32253)=="undefined") BackColors32253 = ""; if (typeof(ForeColors32253)=="undefined") ForeColors32253= "white"; if (typeof(TargetDates32253)=="undefined") TargetDates32253 = "05/11/2025 11:00:00 PM"; if (typeof(DisplayFormats32253)=="undefined") DisplayFormats32253 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32253)=="undefined") CountActives32253 = true; if (typeof(FinishMessages32253)=="undefined") FinishMessages32253 = ""; if (typeof(CountSteppers32253)!="number") CountSteppers32253 = -1; if (typeof(LeadingZeros32253)=="undefined") LeadingZeros32253 = true; CountSteppers32253 = Math.ceil(CountSteppers32253); if (CountSteppers32253 == 0) CountActives32253 = false; var SetTimeOutPeriods32253 = (Math.abs(CountSteppers32253)-1)*1000 + 990; puti(BackColors32253, ForeColors32253); var dthens32253 = new Date(TargetDates32253); var dnows32253 = new Date("05/09/2025 4:07:09 PM"); if(CountSteppers32253>0) ddiffs32253 = new Date(dnows32253-dthens32253); else ddiffs32253 = new Date(dthens32253-dnows32253); gsecss32253 = Math.floor(ddiffs32253.valueOf()/1000); CountBacks32253(gsecss32253);