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 (LeadingZeros32344 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32344(secs) { if (secs < 0) { document.getElementById("cntdwns32344").innerHTML = FinishMessages32344; return; } DisplayStrs32344 = DisplayFormats32344.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32344 = DisplayStrs32344.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32344 = DisplayStrs32344.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32344 = DisplayStrs32344.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32344").innerHTML = DisplayStrs32344; if (CountActives32344) //alert(SetTimeOutPeriods32344); setTimeout("CountBacks32344(" + (secs+CountSteppers32344) + ")", SetTimeOutPeriods32344); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32344)=="undefined") BackColors32344 = ""; if (typeof(ForeColors32344)=="undefined") ForeColors32344= "white"; if (typeof(TargetDates32344)=="undefined") TargetDates32344 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32344)=="undefined") DisplayFormats32344 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32344)=="undefined") CountActives32344 = true; if (typeof(FinishMessages32344)=="undefined") FinishMessages32344 = ""; if (typeof(CountSteppers32344)!="number") CountSteppers32344 = -1; if (typeof(LeadingZeros32344)=="undefined") LeadingZeros32344 = true; CountSteppers32344 = Math.ceil(CountSteppers32344); if (CountSteppers32344 == 0) CountActives32344 = false; var SetTimeOutPeriods32344 = (Math.abs(CountSteppers32344)-1)*1000 + 990; puti(BackColors32344, ForeColors32344); var dthens32344 = new Date(TargetDates32344); var dnows32344 = new Date("06/01/2025 8:46:08 AM"); if(CountSteppers32344>0) ddiffs32344 = new Date(dnows32344-dthens32344); else ddiffs32344 = new Date(dthens32344-dnows32344); gsecss32344 = Math.floor(ddiffs32344.valueOf()/1000); CountBacks32344(gsecss32344);