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 (LeadingZeros32568 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32568(secs) { if (secs < 0) { document.getElementById("cntdwns32568").innerHTML = FinishMessages32568; return; } DisplayStrs32568 = DisplayFormats32568.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32568 = DisplayStrs32568.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32568 = DisplayStrs32568.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32568 = DisplayStrs32568.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32568").innerHTML = DisplayStrs32568; if (CountActives32568) //alert(SetTimeOutPeriods32568); setTimeout("CountBacks32568(" + (secs+CountSteppers32568) + ")", SetTimeOutPeriods32568); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32568)=="undefined") BackColors32568 = ""; if (typeof(ForeColors32568)=="undefined") ForeColors32568= "white"; if (typeof(TargetDates32568)=="undefined") TargetDates32568 = "07/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32568)=="undefined") DisplayFormats32568 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32568)=="undefined") CountActives32568 = true; if (typeof(FinishMessages32568)=="undefined") FinishMessages32568 = ""; if (typeof(CountSteppers32568)!="number") CountSteppers32568 = -1; if (typeof(LeadingZeros32568)=="undefined") LeadingZeros32568 = true; CountSteppers32568 = Math.ceil(CountSteppers32568); if (CountSteppers32568 == 0) CountActives32568 = false; var SetTimeOutPeriods32568 = (Math.abs(CountSteppers32568)-1)*1000 + 990; puti(BackColors32568, ForeColors32568); var dthens32568 = new Date(TargetDates32568); var dnows32568 = new Date("07/16/2025 10:37:38 PM"); if(CountSteppers32568>0) ddiffs32568 = new Date(dnows32568-dthens32568); else ddiffs32568 = new Date(dthens32568-dnows32568); gsecss32568 = Math.floor(ddiffs32568.valueOf()/1000); CountBacks32568(gsecss32568);