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 (LeadingZeros32533 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32533(secs) { if (secs < 0) { document.getElementById("cntdwns32533").innerHTML = FinishMessages32533; return; } DisplayStrs32533 = DisplayFormats32533.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32533 = DisplayStrs32533.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32533 = DisplayStrs32533.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32533 = DisplayStrs32533.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32533").innerHTML = DisplayStrs32533; if (CountActives32533) //alert(SetTimeOutPeriods32533); setTimeout("CountBacks32533(" + (secs+CountSteppers32533) + ")", SetTimeOutPeriods32533); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32533)=="undefined") BackColors32533 = ""; if (typeof(ForeColors32533)=="undefined") ForeColors32533= "white"; if (typeof(TargetDates32533)=="undefined") TargetDates32533 = "08/31/2025 10:00:00 PM"; if (typeof(DisplayFormats32533)=="undefined") DisplayFormats32533 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32533)=="undefined") CountActives32533 = true; if (typeof(FinishMessages32533)=="undefined") FinishMessages32533 = ""; if (typeof(CountSteppers32533)!="number") CountSteppers32533 = -1; if (typeof(LeadingZeros32533)=="undefined") LeadingZeros32533 = true; CountSteppers32533 = Math.ceil(CountSteppers32533); if (CountSteppers32533 == 0) CountActives32533 = false; var SetTimeOutPeriods32533 = (Math.abs(CountSteppers32533)-1)*1000 + 990; puti(BackColors32533, ForeColors32533); var dthens32533 = new Date(TargetDates32533); var dnows32533 = new Date("07/01/2025 2:29:34 AM"); if(CountSteppers32533>0) ddiffs32533 = new Date(dnows32533-dthens32533); else ddiffs32533 = new Date(dthens32533-dnows32533); gsecss32533 = Math.floor(ddiffs32533.valueOf()/1000); CountBacks32533(gsecss32533);