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 (LeadingZeros32490 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32490(secs) { if (secs < 0) { document.getElementById("cntdwns32490").innerHTML = FinishMessages32490; return; } DisplayStrs32490 = DisplayFormats32490.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32490 = DisplayStrs32490.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32490 = DisplayStrs32490.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32490 = DisplayStrs32490.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32490").innerHTML = DisplayStrs32490; if (CountActives32490) //alert(SetTimeOutPeriods32490); setTimeout("CountBacks32490(" + (secs+CountSteppers32490) + ")", SetTimeOutPeriods32490); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32490)=="undefined") BackColors32490 = ""; if (typeof(ForeColors32490)=="undefined") ForeColors32490= "white"; if (typeof(TargetDates32490)=="undefined") TargetDates32490 = "07/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32490)=="undefined") DisplayFormats32490 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32490)=="undefined") CountActives32490 = true; if (typeof(FinishMessages32490)=="undefined") FinishMessages32490 = ""; if (typeof(CountSteppers32490)!="number") CountSteppers32490 = -1; if (typeof(LeadingZeros32490)=="undefined") LeadingZeros32490 = true; CountSteppers32490 = Math.ceil(CountSteppers32490); if (CountSteppers32490 == 0) CountActives32490 = false; var SetTimeOutPeriods32490 = (Math.abs(CountSteppers32490)-1)*1000 + 990; puti(BackColors32490, ForeColors32490); var dthens32490 = new Date(TargetDates32490); var dnows32490 = new Date("07/10/2025 5:57:24 AM"); if(CountSteppers32490>0) ddiffs32490 = new Date(dnows32490-dthens32490); else ddiffs32490 = new Date(dthens32490-dnows32490); gsecss32490 = Math.floor(ddiffs32490.valueOf()/1000); CountBacks32490(gsecss32490);