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 (LeadingZeros32366 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32366(secs) { if (secs < 0) { document.getElementById("cntdwns32366").innerHTML = FinishMessages32366; return; } DisplayStrs32366 = DisplayFormats32366.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32366 = DisplayStrs32366.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32366 = DisplayStrs32366.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32366 = DisplayStrs32366.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32366").innerHTML = DisplayStrs32366; if (CountActives32366) //alert(SetTimeOutPeriods32366); setTimeout("CountBacks32366(" + (secs+CountSteppers32366) + ")", SetTimeOutPeriods32366); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32366)=="undefined") BackColors32366 = ""; if (typeof(ForeColors32366)=="undefined") ForeColors32366= "white"; if (typeof(TargetDates32366)=="undefined") TargetDates32366 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32366)=="undefined") DisplayFormats32366 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32366)=="undefined") CountActives32366 = true; if (typeof(FinishMessages32366)=="undefined") FinishMessages32366 = ""; if (typeof(CountSteppers32366)!="number") CountSteppers32366 = -1; if (typeof(LeadingZeros32366)=="undefined") LeadingZeros32366 = true; CountSteppers32366 = Math.ceil(CountSteppers32366); if (CountSteppers32366 == 0) CountActives32366 = false; var SetTimeOutPeriods32366 = (Math.abs(CountSteppers32366)-1)*1000 + 990; puti(BackColors32366, ForeColors32366); var dthens32366 = new Date(TargetDates32366); var dnows32366 = new Date("06/02/2025 7:59:03 AM"); if(CountSteppers32366>0) ddiffs32366 = new Date(dnows32366-dthens32366); else ddiffs32366 = new Date(dthens32366-dnows32366); gsecss32366 = Math.floor(ddiffs32366.valueOf()/1000); CountBacks32366(gsecss32366);