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 (LeadingZeros32648 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32648(secs) { if (secs < 0) { document.getElementById("cntdwns32648").innerHTML = FinishMessages32648; return; } DisplayStrs32648 = DisplayFormats32648.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32648 = DisplayStrs32648.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32648 = DisplayStrs32648.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32648 = DisplayStrs32648.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32648").innerHTML = DisplayStrs32648; if (CountActives32648) //alert(SetTimeOutPeriods32648); setTimeout("CountBacks32648(" + (secs+CountSteppers32648) + ")", SetTimeOutPeriods32648); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32648)=="undefined") BackColors32648 = ""; if (typeof(ForeColors32648)=="undefined") ForeColors32648= "white"; if (typeof(TargetDates32648)=="undefined") TargetDates32648 = "08/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32648)=="undefined") DisplayFormats32648 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32648)=="undefined") CountActives32648 = true; if (typeof(FinishMessages32648)=="undefined") FinishMessages32648 = ""; if (typeof(CountSteppers32648)!="number") CountSteppers32648 = -1; if (typeof(LeadingZeros32648)=="undefined") LeadingZeros32648 = true; CountSteppers32648 = Math.ceil(CountSteppers32648); if (CountSteppers32648 == 0) CountActives32648 = false; var SetTimeOutPeriods32648 = (Math.abs(CountSteppers32648)-1)*1000 + 990; puti(BackColors32648, ForeColors32648); var dthens32648 = new Date(TargetDates32648); var dnows32648 = new Date("08/20/2025 5:54:45 AM"); if(CountSteppers32648>0) ddiffs32648 = new Date(dnows32648-dthens32648); else ddiffs32648 = new Date(dthens32648-dnows32648); gsecss32648 = Math.floor(ddiffs32648.valueOf()/1000); CountBacks32648(gsecss32648);