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 (LeadingZeros32422 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32422(secs) { if (secs < 0) { document.getElementById("cntdwns32422").innerHTML = FinishMessages32422; return; } DisplayStrs32422 = DisplayFormats32422.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32422 = DisplayStrs32422.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32422 = DisplayStrs32422.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32422 = DisplayStrs32422.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32422").innerHTML = DisplayStrs32422; if (CountActives32422) //alert(SetTimeOutPeriods32422); setTimeout("CountBacks32422(" + (secs+CountSteppers32422) + ")", SetTimeOutPeriods32422); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32422)=="undefined") BackColors32422 = ""; if (typeof(ForeColors32422)=="undefined") ForeColors32422= "white"; if (typeof(TargetDates32422)=="undefined") TargetDates32422 = "06/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32422)=="undefined") DisplayFormats32422 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32422)=="undefined") CountActives32422 = true; if (typeof(FinishMessages32422)=="undefined") FinishMessages32422 = ""; if (typeof(CountSteppers32422)!="number") CountSteppers32422 = -1; if (typeof(LeadingZeros32422)=="undefined") LeadingZeros32422 = true; CountSteppers32422 = Math.ceil(CountSteppers32422); if (CountSteppers32422 == 0) CountActives32422 = false; var SetTimeOutPeriods32422 = (Math.abs(CountSteppers32422)-1)*1000 + 990; puti(BackColors32422, ForeColors32422); var dthens32422 = new Date(TargetDates32422); var dnows32422 = new Date("06/04/2025 11:55:27 AM"); if(CountSteppers32422>0) ddiffs32422 = new Date(dnows32422-dthens32422); else ddiffs32422 = new Date(dthens32422-dnows32422); gsecss32422 = Math.floor(ddiffs32422.valueOf()/1000); CountBacks32422(gsecss32422);