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 (LeadingZeros32300 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32300(secs) { if (secs < 0) { document.getElementById("cntdwns32300").innerHTML = FinishMessages32300; return; } DisplayStrs32300 = DisplayFormats32300.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32300 = DisplayStrs32300.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32300 = DisplayStrs32300.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32300 = DisplayStrs32300.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32300").innerHTML = DisplayStrs32300; if (CountActives32300) //alert(SetTimeOutPeriods32300); setTimeout("CountBacks32300(" + (secs+CountSteppers32300) + ")", SetTimeOutPeriods32300); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32300)=="undefined") BackColors32300 = ""; if (typeof(ForeColors32300)=="undefined") ForeColors32300= "white"; if (typeof(TargetDates32300)=="undefined") TargetDates32300 = "05/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32300)=="undefined") DisplayFormats32300 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32300)=="undefined") CountActives32300 = true; if (typeof(FinishMessages32300)=="undefined") FinishMessages32300 = ""; if (typeof(CountSteppers32300)!="number") CountSteppers32300 = -1; if (typeof(LeadingZeros32300)=="undefined") LeadingZeros32300 = true; CountSteppers32300 = Math.ceil(CountSteppers32300); if (CountSteppers32300 == 0) CountActives32300 = false; var SetTimeOutPeriods32300 = (Math.abs(CountSteppers32300)-1)*1000 + 990; puti(BackColors32300, ForeColors32300); var dthens32300 = new Date(TargetDates32300); var dnows32300 = new Date("05/08/2025 4:48:43 PM"); if(CountSteppers32300>0) ddiffs32300 = new Date(dnows32300-dthens32300); else ddiffs32300 = new Date(dthens32300-dnows32300); gsecss32300 = Math.floor(ddiffs32300.valueOf()/1000); CountBacks32300(gsecss32300);