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 (LeadingZeros32088 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32088(secs) { if (secs < 0) { document.getElementById("cntdwns32088").innerHTML = FinishMessages32088; return; } DisplayStrs32088 = DisplayFormats32088.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32088 = DisplayStrs32088.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32088 = DisplayStrs32088.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32088 = DisplayStrs32088.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32088").innerHTML = DisplayStrs32088; if (CountActives32088) //alert(SetTimeOutPeriods32088); setTimeout("CountBacks32088(" + (secs+CountSteppers32088) + ")", SetTimeOutPeriods32088); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32088)=="undefined") BackColors32088 = ""; if (typeof(ForeColors32088)=="undefined") ForeColors32088= "white"; if (typeof(TargetDates32088)=="undefined") TargetDates32088 = "04/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32088)=="undefined") DisplayFormats32088 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32088)=="undefined") CountActives32088 = true; if (typeof(FinishMessages32088)=="undefined") FinishMessages32088 = ""; if (typeof(CountSteppers32088)!="number") CountSteppers32088 = -1; if (typeof(LeadingZeros32088)=="undefined") LeadingZeros32088 = true; CountSteppers32088 = Math.ceil(CountSteppers32088); if (CountSteppers32088 == 0) CountActives32088 = false; var SetTimeOutPeriods32088 = (Math.abs(CountSteppers32088)-1)*1000 + 990; puti(BackColors32088, ForeColors32088); var dthens32088 = new Date(TargetDates32088); var dnows32088 = new Date("04/17/2025 5:19:17 AM"); if(CountSteppers32088>0) ddiffs32088 = new Date(dnows32088-dthens32088); else ddiffs32088 = new Date(dthens32088-dnows32088); gsecss32088 = Math.floor(ddiffs32088.valueOf()/1000); CountBacks32088(gsecss32088);