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 (LeadingZeros32260 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32260(secs) { if (secs < 0) { document.getElementById("cntdwns32260").innerHTML = FinishMessages32260; return; } DisplayStrs32260 = DisplayFormats32260.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32260 = DisplayStrs32260.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32260 = DisplayStrs32260.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32260 = DisplayStrs32260.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32260").innerHTML = DisplayStrs32260; if (CountActives32260) //alert(SetTimeOutPeriods32260); setTimeout("CountBacks32260(" + (secs+CountSteppers32260) + ")", SetTimeOutPeriods32260); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32260)=="undefined") BackColors32260 = ""; if (typeof(ForeColors32260)=="undefined") ForeColors32260= "white"; if (typeof(TargetDates32260)=="undefined") TargetDates32260 = "07/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32260)=="undefined") DisplayFormats32260 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32260)=="undefined") CountActives32260 = true; if (typeof(FinishMessages32260)=="undefined") FinishMessages32260 = ""; if (typeof(CountSteppers32260)!="number") CountSteppers32260 = -1; if (typeof(LeadingZeros32260)=="undefined") LeadingZeros32260 = true; CountSteppers32260 = Math.ceil(CountSteppers32260); if (CountSteppers32260 == 0) CountActives32260 = false; var SetTimeOutPeriods32260 = (Math.abs(CountSteppers32260)-1)*1000 + 990; puti(BackColors32260, ForeColors32260); var dthens32260 = new Date(TargetDates32260); var dnows32260 = new Date("07/02/2025 12:52:40 PM"); if(CountSteppers32260>0) ddiffs32260 = new Date(dnows32260-dthens32260); else ddiffs32260 = new Date(dthens32260-dnows32260); gsecss32260 = Math.floor(ddiffs32260.valueOf()/1000); CountBacks32260(gsecss32260);