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 (LeadingZeros32367 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32367(secs) { if (secs < 0) { document.getElementById("cntdwns32367").innerHTML = FinishMessages32367; return; } DisplayStrs32367 = DisplayFormats32367.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32367 = DisplayStrs32367.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32367 = DisplayStrs32367.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32367 = DisplayStrs32367.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32367").innerHTML = DisplayStrs32367; if (CountActives32367) //alert(SetTimeOutPeriods32367); setTimeout("CountBacks32367(" + (secs+CountSteppers32367) + ")", SetTimeOutPeriods32367); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32367)=="undefined") BackColors32367 = ""; if (typeof(ForeColors32367)=="undefined") ForeColors32367= "white"; if (typeof(TargetDates32367)=="undefined") TargetDates32367 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32367)=="undefined") DisplayFormats32367 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32367)=="undefined") CountActives32367 = true; if (typeof(FinishMessages32367)=="undefined") FinishMessages32367 = ""; if (typeof(CountSteppers32367)!="number") CountSteppers32367 = -1; if (typeof(LeadingZeros32367)=="undefined") LeadingZeros32367 = true; CountSteppers32367 = Math.ceil(CountSteppers32367); if (CountSteppers32367 == 0) CountActives32367 = false; var SetTimeOutPeriods32367 = (Math.abs(CountSteppers32367)-1)*1000 + 990; puti(BackColors32367, ForeColors32367); var dthens32367 = new Date(TargetDates32367); var dnows32367 = new Date("06/02/2025 2:10:48 AM"); if(CountSteppers32367>0) ddiffs32367 = new Date(dnows32367-dthens32367); else ddiffs32367 = new Date(dthens32367-dnows32367); gsecss32367 = Math.floor(ddiffs32367.valueOf()/1000); CountBacks32367(gsecss32367);