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 (LeadingZeros32713 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32713(secs) { if (secs < 0) { document.getElementById("cntdwns32713").innerHTML = FinishMessages32713; return; } DisplayStrs32713 = DisplayFormats32713.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32713 = DisplayStrs32713.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32713 = DisplayStrs32713.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32713 = DisplayStrs32713.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32713").innerHTML = DisplayStrs32713; if (CountActives32713) //alert(SetTimeOutPeriods32713); setTimeout("CountBacks32713(" + (secs+CountSteppers32713) + ")", SetTimeOutPeriods32713); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32713)=="undefined") BackColors32713 = ""; if (typeof(ForeColors32713)=="undefined") ForeColors32713= "white"; if (typeof(TargetDates32713)=="undefined") TargetDates32713 = "10/07/2025 10:00:00 PM"; if (typeof(DisplayFormats32713)=="undefined") DisplayFormats32713 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32713)=="undefined") CountActives32713 = true; if (typeof(FinishMessages32713)=="undefined") FinishMessages32713 = ""; if (typeof(CountSteppers32713)!="number") CountSteppers32713 = -1; if (typeof(LeadingZeros32713)=="undefined") LeadingZeros32713 = true; CountSteppers32713 = Math.ceil(CountSteppers32713); if (CountSteppers32713 == 0) CountActives32713 = false; var SetTimeOutPeriods32713 = (Math.abs(CountSteppers32713)-1)*1000 + 990; puti(BackColors32713, ForeColors32713); var dthens32713 = new Date(TargetDates32713); var dnows32713 = new Date("10/04/2025 7:25:08 PM"); if(CountSteppers32713>0) ddiffs32713 = new Date(dnows32713-dthens32713); else ddiffs32713 = new Date(dthens32713-dnows32713); gsecss32713 = Math.floor(ddiffs32713.valueOf()/1000); CountBacks32713(gsecss32713);