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 (LeadingZeros32378 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32378(secs) { if (secs < 0) { document.getElementById("cntdwns32378").innerHTML = FinishMessages32378; return; } DisplayStrs32378 = DisplayFormats32378.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32378 = DisplayStrs32378.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32378 = DisplayStrs32378.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32378 = DisplayStrs32378.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32378").innerHTML = DisplayStrs32378; if (CountActives32378) //alert(SetTimeOutPeriods32378); setTimeout("CountBacks32378(" + (secs+CountSteppers32378) + ")", SetTimeOutPeriods32378); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32378)=="undefined") BackColors32378 = ""; if (typeof(ForeColors32378)=="undefined") ForeColors32378= "white"; if (typeof(TargetDates32378)=="undefined") TargetDates32378 = "06/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32378)=="undefined") DisplayFormats32378 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32378)=="undefined") CountActives32378 = true; if (typeof(FinishMessages32378)=="undefined") FinishMessages32378 = ""; if (typeof(CountSteppers32378)!="number") CountSteppers32378 = -1; if (typeof(LeadingZeros32378)=="undefined") LeadingZeros32378 = true; CountSteppers32378 = Math.ceil(CountSteppers32378); if (CountSteppers32378 == 0) CountActives32378 = false; var SetTimeOutPeriods32378 = (Math.abs(CountSteppers32378)-1)*1000 + 990; puti(BackColors32378, ForeColors32378); var dthens32378 = new Date(TargetDates32378); var dnows32378 = new Date("06/04/2025 4:52:15 AM"); if(CountSteppers32378>0) ddiffs32378 = new Date(dnows32378-dthens32378); else ddiffs32378 = new Date(dthens32378-dnows32378); gsecss32378 = Math.floor(ddiffs32378.valueOf()/1000); CountBacks32378(gsecss32378);