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 (LeadingZeros32072 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32072(secs) { if (secs < 0) { document.getElementById("cntdwns32072").innerHTML = FinishMessages32072; return; } DisplayStrs32072 = DisplayFormats32072.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32072 = DisplayStrs32072.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32072 = DisplayStrs32072.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32072 = DisplayStrs32072.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32072").innerHTML = DisplayStrs32072; if (CountActives32072) //alert(SetTimeOutPeriods32072); setTimeout("CountBacks32072(" + (secs+CountSteppers32072) + ")", SetTimeOutPeriods32072); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32072)=="undefined") BackColors32072 = ""; if (typeof(ForeColors32072)=="undefined") ForeColors32072= "white"; if (typeof(TargetDates32072)=="undefined") TargetDates32072 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32072)=="undefined") DisplayFormats32072 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32072)=="undefined") CountActives32072 = true; if (typeof(FinishMessages32072)=="undefined") FinishMessages32072 = ""; if (typeof(CountSteppers32072)!="number") CountSteppers32072 = -1; if (typeof(LeadingZeros32072)=="undefined") LeadingZeros32072 = true; CountSteppers32072 = Math.ceil(CountSteppers32072); if (CountSteppers32072 == 0) CountActives32072 = false; var SetTimeOutPeriods32072 = (Math.abs(CountSteppers32072)-1)*1000 + 990; puti(BackColors32072, ForeColors32072); var dthens32072 = new Date(TargetDates32072); var dnows32072 = new Date("04/16/2025 11:05:11 AM"); if(CountSteppers32072>0) ddiffs32072 = new Date(dnows32072-dthens32072); else ddiffs32072 = new Date(dthens32072-dnows32072); gsecss32072 = Math.floor(ddiffs32072.valueOf()/1000); CountBacks32072(gsecss32072);