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 (LeadingZeros32202 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32202(secs) { if (secs < 0) { document.getElementById("cntdwns32202").innerHTML = FinishMessages32202; return; } DisplayStrs32202 = DisplayFormats32202.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32202 = DisplayStrs32202.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32202 = DisplayStrs32202.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32202 = DisplayStrs32202.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32202").innerHTML = DisplayStrs32202; if (CountActives32202) //alert(SetTimeOutPeriods32202); setTimeout("CountBacks32202(" + (secs+CountSteppers32202) + ")", SetTimeOutPeriods32202); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32202)=="undefined") BackColors32202 = ""; if (typeof(ForeColors32202)=="undefined") ForeColors32202= "white"; if (typeof(TargetDates32202)=="undefined") TargetDates32202 = "04/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32202)=="undefined") DisplayFormats32202 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32202)=="undefined") CountActives32202 = true; if (typeof(FinishMessages32202)=="undefined") FinishMessages32202 = ""; if (typeof(CountSteppers32202)!="number") CountSteppers32202 = -1; if (typeof(LeadingZeros32202)=="undefined") LeadingZeros32202 = true; CountSteppers32202 = Math.ceil(CountSteppers32202); if (CountSteppers32202 == 0) CountActives32202 = false; var SetTimeOutPeriods32202 = (Math.abs(CountSteppers32202)-1)*1000 + 990; puti(BackColors32202, ForeColors32202); var dthens32202 = new Date(TargetDates32202); var dnows32202 = new Date("04/19/2025 1:01:23 PM"); if(CountSteppers32202>0) ddiffs32202 = new Date(dnows32202-dthens32202); else ddiffs32202 = new Date(dthens32202-dnows32202); gsecss32202 = Math.floor(ddiffs32202.valueOf()/1000); CountBacks32202(gsecss32202);