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 (LeadingZeros32721 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32721(secs) { if (secs < 0) { document.getElementById("cntdwns32721").innerHTML = FinishMessages32721; return; } DisplayStrs32721 = DisplayFormats32721.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32721 = DisplayStrs32721.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32721 = DisplayStrs32721.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32721 = DisplayStrs32721.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32721").innerHTML = DisplayStrs32721; if (CountActives32721) //alert(SetTimeOutPeriods32721); setTimeout("CountBacks32721(" + (secs+CountSteppers32721) + ")", SetTimeOutPeriods32721); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32721)=="undefined") BackColors32721 = ""; if (typeof(ForeColors32721)=="undefined") ForeColors32721= "white"; if (typeof(TargetDates32721)=="undefined") TargetDates32721 = "09/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32721)=="undefined") DisplayFormats32721 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32721)=="undefined") CountActives32721 = true; if (typeof(FinishMessages32721)=="undefined") FinishMessages32721 = ""; if (typeof(CountSteppers32721)!="number") CountSteppers32721 = -1; if (typeof(LeadingZeros32721)=="undefined") LeadingZeros32721 = true; CountSteppers32721 = Math.ceil(CountSteppers32721); if (CountSteppers32721 == 0) CountActives32721 = false; var SetTimeOutPeriods32721 = (Math.abs(CountSteppers32721)-1)*1000 + 990; puti(BackColors32721, ForeColors32721); var dthens32721 = new Date(TargetDates32721); var dnows32721 = new Date("09/01/2025 2:26:02 PM"); if(CountSteppers32721>0) ddiffs32721 = new Date(dnows32721-dthens32721); else ddiffs32721 = new Date(dthens32721-dnows32721); gsecss32721 = Math.floor(ddiffs32721.valueOf()/1000); CountBacks32721(gsecss32721);