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 (LeadingZeros32063 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32063(secs) { if (secs < 0) { document.getElementById("cntdwns32063").innerHTML = FinishMessages32063; return; } DisplayStrs32063 = DisplayFormats32063.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32063 = DisplayStrs32063.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32063 = DisplayStrs32063.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32063 = DisplayStrs32063.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32063").innerHTML = DisplayStrs32063; if (CountActives32063) //alert(SetTimeOutPeriods32063); setTimeout("CountBacks32063(" + (secs+CountSteppers32063) + ")", SetTimeOutPeriods32063); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32063)=="undefined") BackColors32063 = ""; if (typeof(ForeColors32063)=="undefined") ForeColors32063= "white"; if (typeof(TargetDates32063)=="undefined") TargetDates32063 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32063)=="undefined") DisplayFormats32063 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32063)=="undefined") CountActives32063 = true; if (typeof(FinishMessages32063)=="undefined") FinishMessages32063 = ""; if (typeof(CountSteppers32063)!="number") CountSteppers32063 = -1; if (typeof(LeadingZeros32063)=="undefined") LeadingZeros32063 = true; CountSteppers32063 = Math.ceil(CountSteppers32063); if (CountSteppers32063 == 0) CountActives32063 = false; var SetTimeOutPeriods32063 = (Math.abs(CountSteppers32063)-1)*1000 + 990; puti(BackColors32063, ForeColors32063); var dthens32063 = new Date(TargetDates32063); var dnows32063 = new Date("03/29/2025 3:10:11 PM"); if(CountSteppers32063>0) ddiffs32063 = new Date(dnows32063-dthens32063); else ddiffs32063 = new Date(dthens32063-dnows32063); gsecss32063 = Math.floor(ddiffs32063.valueOf()/1000); CountBacks32063(gsecss32063);