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 (LeadingZeros32390 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32390(secs) { if (secs < 0) { document.getElementById("cntdwns32390").innerHTML = FinishMessages32390; return; } DisplayStrs32390 = DisplayFormats32390.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32390 = DisplayStrs32390.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32390 = DisplayStrs32390.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32390 = DisplayStrs32390.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32390").innerHTML = DisplayStrs32390; if (CountActives32390) //alert(SetTimeOutPeriods32390); setTimeout("CountBacks32390(" + (secs+CountSteppers32390) + ")", SetTimeOutPeriods32390); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32390)=="undefined") BackColors32390 = ""; if (typeof(ForeColors32390)=="undefined") ForeColors32390= "white"; if (typeof(TargetDates32390)=="undefined") TargetDates32390 = "06/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32390)=="undefined") DisplayFormats32390 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32390)=="undefined") CountActives32390 = true; if (typeof(FinishMessages32390)=="undefined") FinishMessages32390 = ""; if (typeof(CountSteppers32390)!="number") CountSteppers32390 = -1; if (typeof(LeadingZeros32390)=="undefined") LeadingZeros32390 = true; CountSteppers32390 = Math.ceil(CountSteppers32390); if (CountSteppers32390 == 0) CountActives32390 = false; var SetTimeOutPeriods32390 = (Math.abs(CountSteppers32390)-1)*1000 + 990; puti(BackColors32390, ForeColors32390); var dthens32390 = new Date(TargetDates32390); var dnows32390 = new Date("06/01/2025 1:46:14 AM"); if(CountSteppers32390>0) ddiffs32390 = new Date(dnows32390-dthens32390); else ddiffs32390 = new Date(dthens32390-dnows32390); gsecss32390 = Math.floor(ddiffs32390.valueOf()/1000); CountBacks32390(gsecss32390);