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 (LeadingZeros32153 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32153(secs) { if (secs < 0) { document.getElementById("cntdwns32153").innerHTML = FinishMessages32153; return; } DisplayStrs32153 = DisplayFormats32153.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32153 = DisplayStrs32153.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32153 = DisplayStrs32153.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32153 = DisplayStrs32153.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32153").innerHTML = DisplayStrs32153; if (CountActives32153) //alert(SetTimeOutPeriods32153); setTimeout("CountBacks32153(" + (secs+CountSteppers32153) + ")", SetTimeOutPeriods32153); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32153)=="undefined") BackColors32153 = ""; if (typeof(ForeColors32153)=="undefined") ForeColors32153= "white"; if (typeof(TargetDates32153)=="undefined") TargetDates32153 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32153)=="undefined") DisplayFormats32153 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32153)=="undefined") CountActives32153 = true; if (typeof(FinishMessages32153)=="undefined") FinishMessages32153 = ""; if (typeof(CountSteppers32153)!="number") CountSteppers32153 = -1; if (typeof(LeadingZeros32153)=="undefined") LeadingZeros32153 = true; CountSteppers32153 = Math.ceil(CountSteppers32153); if (CountSteppers32153 == 0) CountActives32153 = false; var SetTimeOutPeriods32153 = (Math.abs(CountSteppers32153)-1)*1000 + 990; puti(BackColors32153, ForeColors32153); var dthens32153 = new Date(TargetDates32153); var dnows32153 = new Date("04/18/2025 10:09:55 PM"); if(CountSteppers32153>0) ddiffs32153 = new Date(dnows32153-dthens32153); else ddiffs32153 = new Date(dthens32153-dnows32153); gsecss32153 = Math.floor(ddiffs32153.valueOf()/1000); CountBacks32153(gsecss32153);