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 (LeadingZeros32513 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32513(secs) { if (secs < 0) { document.getElementById("cntdwns32513").innerHTML = FinishMessages32513; return; } DisplayStrs32513 = DisplayFormats32513.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32513 = DisplayStrs32513.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32513 = DisplayStrs32513.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32513 = DisplayStrs32513.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32513").innerHTML = DisplayStrs32513; if (CountActives32513) //alert(SetTimeOutPeriods32513); setTimeout("CountBacks32513(" + (secs+CountSteppers32513) + ")", SetTimeOutPeriods32513); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32513)=="undefined") BackColors32513 = ""; if (typeof(ForeColors32513)=="undefined") ForeColors32513= "white"; if (typeof(TargetDates32513)=="undefined") TargetDates32513 = "07/13/2025 10:00:00 PM"; if (typeof(DisplayFormats32513)=="undefined") DisplayFormats32513 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32513)=="undefined") CountActives32513 = true; if (typeof(FinishMessages32513)=="undefined") FinishMessages32513 = ""; if (typeof(CountSteppers32513)!="number") CountSteppers32513 = -1; if (typeof(LeadingZeros32513)=="undefined") LeadingZeros32513 = true; CountSteppers32513 = Math.ceil(CountSteppers32513); if (CountSteppers32513 == 0) CountActives32513 = false; var SetTimeOutPeriods32513 = (Math.abs(CountSteppers32513)-1)*1000 + 990; puti(BackColors32513, ForeColors32513); var dthens32513 = new Date(TargetDates32513); var dnows32513 = new Date("07/11/2025 2:20:40 PM"); if(CountSteppers32513>0) ddiffs32513 = new Date(dnows32513-dthens32513); else ddiffs32513 = new Date(dthens32513-dnows32513); gsecss32513 = Math.floor(ddiffs32513.valueOf()/1000); CountBacks32513(gsecss32513);