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 (LeadingZeros32281 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32281(secs) { if (secs < 0) { document.getElementById("cntdwns32281").innerHTML = FinishMessages32281; return; } DisplayStrs32281 = DisplayFormats32281.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32281 = DisplayStrs32281.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32281 = DisplayStrs32281.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32281 = DisplayStrs32281.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32281").innerHTML = DisplayStrs32281; if (CountActives32281) //alert(SetTimeOutPeriods32281); setTimeout("CountBacks32281(" + (secs+CountSteppers32281) + ")", SetTimeOutPeriods32281); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32281)=="undefined") BackColors32281 = ""; if (typeof(ForeColors32281)=="undefined") ForeColors32281= "white"; if (typeof(TargetDates32281)=="undefined") TargetDates32281 = "05/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32281)=="undefined") DisplayFormats32281 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32281)=="undefined") CountActives32281 = true; if (typeof(FinishMessages32281)=="undefined") FinishMessages32281 = ""; if (typeof(CountSteppers32281)!="number") CountSteppers32281 = -1; if (typeof(LeadingZeros32281)=="undefined") LeadingZeros32281 = true; CountSteppers32281 = Math.ceil(CountSteppers32281); if (CountSteppers32281 == 0) CountActives32281 = false; var SetTimeOutPeriods32281 = (Math.abs(CountSteppers32281)-1)*1000 + 990; puti(BackColors32281, ForeColors32281); var dthens32281 = new Date(TargetDates32281); var dnows32281 = new Date("05/01/2025 11:04:50 AM"); if(CountSteppers32281>0) ddiffs32281 = new Date(dnows32281-dthens32281); else ddiffs32281 = new Date(dthens32281-dnows32281); gsecss32281 = Math.floor(ddiffs32281.valueOf()/1000); CountBacks32281(gsecss32281);