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 (LeadingZeros32030 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32030(secs) { if (secs < 0) { document.getElementById("cntdwns32030").innerHTML = FinishMessages32030; return; } DisplayStrs32030 = DisplayFormats32030.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32030 = DisplayStrs32030.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32030 = DisplayStrs32030.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32030 = DisplayStrs32030.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32030").innerHTML = DisplayStrs32030; if (CountActives32030) //alert(SetTimeOutPeriods32030); setTimeout("CountBacks32030(" + (secs+CountSteppers32030) + ")", SetTimeOutPeriods32030); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32030)=="undefined") BackColors32030 = ""; if (typeof(ForeColors32030)=="undefined") ForeColors32030= "white"; if (typeof(TargetDates32030)=="undefined") TargetDates32030 = "04/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32030)=="undefined") DisplayFormats32030 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32030)=="undefined") CountActives32030 = true; if (typeof(FinishMessages32030)=="undefined") FinishMessages32030 = ""; if (typeof(CountSteppers32030)!="number") CountSteppers32030 = -1; if (typeof(LeadingZeros32030)=="undefined") LeadingZeros32030 = true; CountSteppers32030 = Math.ceil(CountSteppers32030); if (CountSteppers32030 == 0) CountActives32030 = false; var SetTimeOutPeriods32030 = (Math.abs(CountSteppers32030)-1)*1000 + 990; puti(BackColors32030, ForeColors32030); var dthens32030 = new Date(TargetDates32030); var dnows32030 = new Date("04/28/2025 11:02:40 AM"); if(CountSteppers32030>0) ddiffs32030 = new Date(dnows32030-dthens32030); else ddiffs32030 = new Date(dthens32030-dnows32030); gsecss32030 = Math.floor(ddiffs32030.valueOf()/1000); CountBacks32030(gsecss32030);