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 (LeadingZeros32194 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32194(secs) { if (secs < 0) { document.getElementById("cntdwns32194").innerHTML = FinishMessages32194; return; } DisplayStrs32194 = DisplayFormats32194.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32194 = DisplayStrs32194.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32194 = DisplayStrs32194.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32194 = DisplayStrs32194.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32194").innerHTML = DisplayStrs32194; if (CountActives32194) //alert(SetTimeOutPeriods32194); setTimeout("CountBacks32194(" + (secs+CountSteppers32194) + ")", SetTimeOutPeriods32194); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32194)=="undefined") BackColors32194 = ""; if (typeof(ForeColors32194)=="undefined") ForeColors32194= "white"; if (typeof(TargetDates32194)=="undefined") TargetDates32194 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32194)=="undefined") DisplayFormats32194 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32194)=="undefined") CountActives32194 = true; if (typeof(FinishMessages32194)=="undefined") FinishMessages32194 = ""; if (typeof(CountSteppers32194)!="number") CountSteppers32194 = -1; if (typeof(LeadingZeros32194)=="undefined") LeadingZeros32194 = true; CountSteppers32194 = Math.ceil(CountSteppers32194); if (CountSteppers32194 == 0) CountActives32194 = false; var SetTimeOutPeriods32194 = (Math.abs(CountSteppers32194)-1)*1000 + 990; puti(BackColors32194, ForeColors32194); var dthens32194 = new Date(TargetDates32194); var dnows32194 = new Date("04/19/2025 2:52:02 PM"); if(CountSteppers32194>0) ddiffs32194 = new Date(dnows32194-dthens32194); else ddiffs32194 = new Date(dthens32194-dnows32194); gsecss32194 = Math.floor(ddiffs32194.valueOf()/1000); CountBacks32194(gsecss32194);