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 (LeadingZeros32233 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32233(secs) { if (secs < 0) { document.getElementById("cntdwns32233").innerHTML = FinishMessages32233; return; } DisplayStrs32233 = DisplayFormats32233.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32233 = DisplayStrs32233.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32233 = DisplayStrs32233.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32233 = DisplayStrs32233.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32233").innerHTML = DisplayStrs32233; if (CountActives32233) //alert(SetTimeOutPeriods32233); setTimeout("CountBacks32233(" + (secs+CountSteppers32233) + ")", SetTimeOutPeriods32233); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32233)=="undefined") BackColors32233 = ""; if (typeof(ForeColors32233)=="undefined") ForeColors32233= "white"; if (typeof(TargetDates32233)=="undefined") TargetDates32233 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32233)=="undefined") DisplayFormats32233 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32233)=="undefined") CountActives32233 = true; if (typeof(FinishMessages32233)=="undefined") FinishMessages32233 = ""; if (typeof(CountSteppers32233)!="number") CountSteppers32233 = -1; if (typeof(LeadingZeros32233)=="undefined") LeadingZeros32233 = true; CountSteppers32233 = Math.ceil(CountSteppers32233); if (CountSteppers32233 == 0) CountActives32233 = false; var SetTimeOutPeriods32233 = (Math.abs(CountSteppers32233)-1)*1000 + 990; puti(BackColors32233, ForeColors32233); var dthens32233 = new Date(TargetDates32233); var dnows32233 = new Date("04/16/2025 11:06:21 AM"); if(CountSteppers32233>0) ddiffs32233 = new Date(dnows32233-dthens32233); else ddiffs32233 = new Date(dthens32233-dnows32233); gsecss32233 = Math.floor(ddiffs32233.valueOf()/1000); CountBacks32233(gsecss32233);