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 (LeadingZeros32323 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32323(secs) { if (secs < 0) { document.getElementById("cntdwns32323").innerHTML = FinishMessages32323; return; } DisplayStrs32323 = DisplayFormats32323.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32323 = DisplayStrs32323.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32323 = DisplayStrs32323.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32323 = DisplayStrs32323.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32323").innerHTML = DisplayStrs32323; if (CountActives32323) //alert(SetTimeOutPeriods32323); setTimeout("CountBacks32323(" + (secs+CountSteppers32323) + ")", SetTimeOutPeriods32323); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32323)=="undefined") BackColors32323 = ""; if (typeof(ForeColors32323)=="undefined") ForeColors32323= "white"; if (typeof(TargetDates32323)=="undefined") TargetDates32323 = "05/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32323)=="undefined") DisplayFormats32323 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32323)=="undefined") CountActives32323 = true; if (typeof(FinishMessages32323)=="undefined") FinishMessages32323 = ""; if (typeof(CountSteppers32323)!="number") CountSteppers32323 = -1; if (typeof(LeadingZeros32323)=="undefined") LeadingZeros32323 = true; CountSteppers32323 = Math.ceil(CountSteppers32323); if (CountSteppers32323 == 0) CountActives32323 = false; var SetTimeOutPeriods32323 = (Math.abs(CountSteppers32323)-1)*1000 + 990; puti(BackColors32323, ForeColors32323); var dthens32323 = new Date(TargetDates32323); var dnows32323 = new Date("05/09/2025 10:07:50 AM"); if(CountSteppers32323>0) ddiffs32323 = new Date(dnows32323-dthens32323); else ddiffs32323 = new Date(dthens32323-dnows32323); gsecss32323 = Math.floor(ddiffs32323.valueOf()/1000); CountBacks32323(gsecss32323);