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 (LeadingZeros32223 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32223(secs) { if (secs < 0) { document.getElementById("cntdwns32223").innerHTML = FinishMessages32223; return; } DisplayStrs32223 = DisplayFormats32223.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32223 = DisplayStrs32223.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32223 = DisplayStrs32223.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32223 = DisplayStrs32223.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32223").innerHTML = DisplayStrs32223; if (CountActives32223) //alert(SetTimeOutPeriods32223); setTimeout("CountBacks32223(" + (secs+CountSteppers32223) + ")", SetTimeOutPeriods32223); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32223)=="undefined") BackColors32223 = ""; if (typeof(ForeColors32223)=="undefined") ForeColors32223= "white"; if (typeof(TargetDates32223)=="undefined") TargetDates32223 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32223)=="undefined") DisplayFormats32223 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32223)=="undefined") CountActives32223 = true; if (typeof(FinishMessages32223)=="undefined") FinishMessages32223 = ""; if (typeof(CountSteppers32223)!="number") CountSteppers32223 = -1; if (typeof(LeadingZeros32223)=="undefined") LeadingZeros32223 = true; CountSteppers32223 = Math.ceil(CountSteppers32223); if (CountSteppers32223 == 0) CountActives32223 = false; var SetTimeOutPeriods32223 = (Math.abs(CountSteppers32223)-1)*1000 + 990; puti(BackColors32223, ForeColors32223); var dthens32223 = new Date(TargetDates32223); var dnows32223 = new Date("04/16/2025 11:05:11 AM"); if(CountSteppers32223>0) ddiffs32223 = new Date(dnows32223-dthens32223); else ddiffs32223 = new Date(dthens32223-dnows32223); gsecss32223 = Math.floor(ddiffs32223.valueOf()/1000); CountBacks32223(gsecss32223);