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 (LeadingZeros32385 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32385(secs) { if (secs < 0) { document.getElementById("cntdwns32385").innerHTML = FinishMessages32385; return; } DisplayStrs32385 = DisplayFormats32385.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32385 = DisplayStrs32385.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32385 = DisplayStrs32385.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32385 = DisplayStrs32385.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32385").innerHTML = DisplayStrs32385; if (CountActives32385) //alert(SetTimeOutPeriods32385); setTimeout("CountBacks32385(" + (secs+CountSteppers32385) + ")", SetTimeOutPeriods32385); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32385)=="undefined") BackColors32385 = ""; if (typeof(ForeColors32385)=="undefined") ForeColors32385= "white"; if (typeof(TargetDates32385)=="undefined") TargetDates32385 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32385)=="undefined") DisplayFormats32385 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32385)=="undefined") CountActives32385 = true; if (typeof(FinishMessages32385)=="undefined") FinishMessages32385 = ""; if (typeof(CountSteppers32385)!="number") CountSteppers32385 = -1; if (typeof(LeadingZeros32385)=="undefined") LeadingZeros32385 = true; CountSteppers32385 = Math.ceil(CountSteppers32385); if (CountSteppers32385 == 0) CountActives32385 = false; var SetTimeOutPeriods32385 = (Math.abs(CountSteppers32385)-1)*1000 + 990; puti(BackColors32385, ForeColors32385); var dthens32385 = new Date(TargetDates32385); var dnows32385 = new Date("06/01/2025 8:47:17 AM"); if(CountSteppers32385>0) ddiffs32385 = new Date(dnows32385-dthens32385); else ddiffs32385 = new Date(dthens32385-dnows32385); gsecss32385 = Math.floor(ddiffs32385.valueOf()/1000); CountBacks32385(gsecss32385);