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 (LeadingZeros32363 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32363(secs) { if (secs < 0) { document.getElementById("cntdwns32363").innerHTML = FinishMessages32363; return; } DisplayStrs32363 = DisplayFormats32363.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32363 = DisplayStrs32363.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32363 = DisplayStrs32363.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32363 = DisplayStrs32363.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32363").innerHTML = DisplayStrs32363; if (CountActives32363) //alert(SetTimeOutPeriods32363); setTimeout("CountBacks32363(" + (secs+CountSteppers32363) + ")", SetTimeOutPeriods32363); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32363)=="undefined") BackColors32363 = ""; if (typeof(ForeColors32363)=="undefined") ForeColors32363= "white"; if (typeof(TargetDates32363)=="undefined") TargetDates32363 = "05/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32363)=="undefined") DisplayFormats32363 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32363)=="undefined") CountActives32363 = true; if (typeof(FinishMessages32363)=="undefined") FinishMessages32363 = ""; if (typeof(CountSteppers32363)!="number") CountSteppers32363 = -1; if (typeof(LeadingZeros32363)=="undefined") LeadingZeros32363 = true; CountSteppers32363 = Math.ceil(CountSteppers32363); if (CountSteppers32363 == 0) CountActives32363 = false; var SetTimeOutPeriods32363 = (Math.abs(CountSteppers32363)-1)*1000 + 990; puti(BackColors32363, ForeColors32363); var dthens32363 = new Date(TargetDates32363); var dnows32363 = new Date("05/21/2025 5:37:16 AM"); if(CountSteppers32363>0) ddiffs32363 = new Date(dnows32363-dthens32363); else ddiffs32363 = new Date(dthens32363-dnows32363); gsecss32363 = Math.floor(ddiffs32363.valueOf()/1000); CountBacks32363(gsecss32363);