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 (LeadingZeros32362 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32362(secs) { if (secs < 0) { document.getElementById("cntdwns32362").innerHTML = FinishMessages32362; return; } DisplayStrs32362 = DisplayFormats32362.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32362 = DisplayStrs32362.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32362 = DisplayStrs32362.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32362 = DisplayStrs32362.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32362").innerHTML = DisplayStrs32362; if (CountActives32362) //alert(SetTimeOutPeriods32362); setTimeout("CountBacks32362(" + (secs+CountSteppers32362) + ")", SetTimeOutPeriods32362); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32362)=="undefined") BackColors32362 = ""; if (typeof(ForeColors32362)=="undefined") ForeColors32362= "white"; if (typeof(TargetDates32362)=="undefined") TargetDates32362 = "06/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32362)=="undefined") DisplayFormats32362 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32362)=="undefined") CountActives32362 = true; if (typeof(FinishMessages32362)=="undefined") FinishMessages32362 = ""; if (typeof(CountSteppers32362)!="number") CountSteppers32362 = -1; if (typeof(LeadingZeros32362)=="undefined") LeadingZeros32362 = true; CountSteppers32362 = Math.ceil(CountSteppers32362); if (CountSteppers32362 == 0) CountActives32362 = false; var SetTimeOutPeriods32362 = (Math.abs(CountSteppers32362)-1)*1000 + 990; puti(BackColors32362, ForeColors32362); var dthens32362 = new Date(TargetDates32362); var dnows32362 = new Date("05/31/2025 4:29:10 AM"); if(CountSteppers32362>0) ddiffs32362 = new Date(dnows32362-dthens32362); else ddiffs32362 = new Date(dthens32362-dnows32362); gsecss32362 = Math.floor(ddiffs32362.valueOf()/1000); CountBacks32362(gsecss32362);