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 (LeadingZeros32551 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32551(secs) { if (secs < 0) { document.getElementById("cntdwns32551").innerHTML = FinishMessages32551; return; } DisplayStrs32551 = DisplayFormats32551.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32551 = DisplayStrs32551.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32551 = DisplayStrs32551.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32551 = DisplayStrs32551.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32551").innerHTML = DisplayStrs32551; if (CountActives32551) //alert(SetTimeOutPeriods32551); setTimeout("CountBacks32551(" + (secs+CountSteppers32551) + ")", SetTimeOutPeriods32551); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32551)=="undefined") BackColors32551 = ""; if (typeof(ForeColors32551)=="undefined") ForeColors32551= "white"; if (typeof(TargetDates32551)=="undefined") TargetDates32551 = "07/27/2025 10:00:00 PM"; if (typeof(DisplayFormats32551)=="undefined") DisplayFormats32551 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32551)=="undefined") CountActives32551 = true; if (typeof(FinishMessages32551)=="undefined") FinishMessages32551 = ""; if (typeof(CountSteppers32551)!="number") CountSteppers32551 = -1; if (typeof(LeadingZeros32551)=="undefined") LeadingZeros32551 = true; CountSteppers32551 = Math.ceil(CountSteppers32551); if (CountSteppers32551 == 0) CountActives32551 = false; var SetTimeOutPeriods32551 = (Math.abs(CountSteppers32551)-1)*1000 + 990; puti(BackColors32551, ForeColors32551); var dthens32551 = new Date(TargetDates32551); var dnows32551 = new Date("07/26/2025 10:31:46 AM"); if(CountSteppers32551>0) ddiffs32551 = new Date(dnows32551-dthens32551); else ddiffs32551 = new Date(dthens32551-dnows32551); gsecss32551 = Math.floor(ddiffs32551.valueOf()/1000); CountBacks32551(gsecss32551);