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 (LeadingZeros32765 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32765(secs) { if (secs < 0) { document.getElementById("cntdwns32765").innerHTML = FinishMessages32765; return; } DisplayStrs32765 = DisplayFormats32765.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32765 = DisplayStrs32765.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32765 = DisplayStrs32765.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32765 = DisplayStrs32765.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32765").innerHTML = DisplayStrs32765; if (CountActives32765) //alert(SetTimeOutPeriods32765); setTimeout("CountBacks32765(" + (secs+CountSteppers32765) + ")", SetTimeOutPeriods32765); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32765)=="undefined") BackColors32765 = ""; if (typeof(ForeColors32765)=="undefined") ForeColors32765= "white"; if (typeof(TargetDates32765)=="undefined") TargetDates32765 = "09/02/2025 10:00:00 PM"; if (typeof(DisplayFormats32765)=="undefined") DisplayFormats32765 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32765)=="undefined") CountActives32765 = true; if (typeof(FinishMessages32765)=="undefined") FinishMessages32765 = ""; if (typeof(CountSteppers32765)!="number") CountSteppers32765 = -1; if (typeof(LeadingZeros32765)=="undefined") LeadingZeros32765 = true; CountSteppers32765 = Math.ceil(CountSteppers32765); if (CountSteppers32765 == 0) CountActives32765 = false; var SetTimeOutPeriods32765 = (Math.abs(CountSteppers32765)-1)*1000 + 990; puti(BackColors32765, ForeColors32765); var dthens32765 = new Date(TargetDates32765); var dnows32765 = new Date("09/01/2025 1:06:20 PM"); if(CountSteppers32765>0) ddiffs32765 = new Date(dnows32765-dthens32765); else ddiffs32765 = new Date(dthens32765-dnows32765); gsecss32765 = Math.floor(ddiffs32765.valueOf()/1000); CountBacks32765(gsecss32765);