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 (LeadingZeros32493 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32493(secs) { if (secs < 0) { document.getElementById("cntdwns32493").innerHTML = FinishMessages32493; return; } DisplayStrs32493 = DisplayFormats32493.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32493 = DisplayStrs32493.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32493 = DisplayStrs32493.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32493 = DisplayStrs32493.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32493").innerHTML = DisplayStrs32493; if (CountActives32493) //alert(SetTimeOutPeriods32493); setTimeout("CountBacks32493(" + (secs+CountSteppers32493) + ")", SetTimeOutPeriods32493); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32493)=="undefined") BackColors32493 = ""; if (typeof(ForeColors32493)=="undefined") ForeColors32493= "white"; if (typeof(TargetDates32493)=="undefined") TargetDates32493 = "06/26/2025 10:00:00 PM"; if (typeof(DisplayFormats32493)=="undefined") DisplayFormats32493 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32493)=="undefined") CountActives32493 = true; if (typeof(FinishMessages32493)=="undefined") FinishMessages32493 = ""; if (typeof(CountSteppers32493)!="number") CountSteppers32493 = -1; if (typeof(LeadingZeros32493)=="undefined") LeadingZeros32493 = true; CountSteppers32493 = Math.ceil(CountSteppers32493); if (CountSteppers32493 == 0) CountActives32493 = false; var SetTimeOutPeriods32493 = (Math.abs(CountSteppers32493)-1)*1000 + 990; puti(BackColors32493, ForeColors32493); var dthens32493 = new Date(TargetDates32493); var dnows32493 = new Date("07/01/2025 3:26:07 PM"); if(CountSteppers32493>0) ddiffs32493 = new Date(dnows32493-dthens32493); else ddiffs32493 = new Date(dthens32493-dnows32493); gsecss32493 = Math.floor(ddiffs32493.valueOf()/1000); CountBacks32493(gsecss32493);