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 (LeadingZeros32529 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32529(secs) { if (secs < 0) { document.getElementById("cntdwns32529").innerHTML = FinishMessages32529; return; } DisplayStrs32529 = DisplayFormats32529.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32529 = DisplayStrs32529.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32529 = DisplayStrs32529.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32529 = DisplayStrs32529.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32529").innerHTML = DisplayStrs32529; if (CountActives32529) //alert(SetTimeOutPeriods32529); setTimeout("CountBacks32529(" + (secs+CountSteppers32529) + ")", SetTimeOutPeriods32529); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32529)=="undefined") BackColors32529 = ""; if (typeof(ForeColors32529)=="undefined") ForeColors32529= "white"; if (typeof(TargetDates32529)=="undefined") TargetDates32529 = "07/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32529)=="undefined") DisplayFormats32529 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32529)=="undefined") CountActives32529 = true; if (typeof(FinishMessages32529)=="undefined") FinishMessages32529 = ""; if (typeof(CountSteppers32529)!="number") CountSteppers32529 = -1; if (typeof(LeadingZeros32529)=="undefined") LeadingZeros32529 = true; CountSteppers32529 = Math.ceil(CountSteppers32529); if (CountSteppers32529 == 0) CountActives32529 = false; var SetTimeOutPeriods32529 = (Math.abs(CountSteppers32529)-1)*1000 + 990; puti(BackColors32529, ForeColors32529); var dthens32529 = new Date(TargetDates32529); var dnows32529 = new Date("07/13/2025 8:47:13 PM"); if(CountSteppers32529>0) ddiffs32529 = new Date(dnows32529-dthens32529); else ddiffs32529 = new Date(dthens32529-dnows32529); gsecss32529 = Math.floor(ddiffs32529.valueOf()/1000); CountBacks32529(gsecss32529);