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 (LeadingZeros32693 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32693(secs) { if (secs < 0) { document.getElementById("cntdwns32693").innerHTML = FinishMessages32693; return; } DisplayStrs32693 = DisplayFormats32693.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32693 = DisplayStrs32693.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32693 = DisplayStrs32693.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32693 = DisplayStrs32693.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32693").innerHTML = DisplayStrs32693; if (CountActives32693) //alert(SetTimeOutPeriods32693); setTimeout("CountBacks32693(" + (secs+CountSteppers32693) + ")", SetTimeOutPeriods32693); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32693)=="undefined") BackColors32693 = ""; if (typeof(ForeColors32693)=="undefined") ForeColors32693= "white"; if (typeof(TargetDates32693)=="undefined") TargetDates32693 = "08/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32693)=="undefined") DisplayFormats32693 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32693)=="undefined") CountActives32693 = true; if (typeof(FinishMessages32693)=="undefined") FinishMessages32693 = ""; if (typeof(CountSteppers32693)!="number") CountSteppers32693 = -1; if (typeof(LeadingZeros32693)=="undefined") LeadingZeros32693 = true; CountSteppers32693 = Math.ceil(CountSteppers32693); if (CountSteppers32693 == 0) CountActives32693 = false; var SetTimeOutPeriods32693 = (Math.abs(CountSteppers32693)-1)*1000 + 990; puti(BackColors32693, ForeColors32693); var dthens32693 = new Date(TargetDates32693); var dnows32693 = new Date("08/20/2025 1:29:39 AM"); if(CountSteppers32693>0) ddiffs32693 = new Date(dnows32693-dthens32693); else ddiffs32693 = new Date(dthens32693-dnows32693); gsecss32693 = Math.floor(ddiffs32693.valueOf()/1000); CountBacks32693(gsecss32693);