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 (LeadingZeros32970 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32970(secs) { if (secs < 0) { document.getElementById("cntdwns32970").innerHTML = FinishMessages32970; return; } DisplayStrs32970 = DisplayFormats32970.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32970 = DisplayStrs32970.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32970 = DisplayStrs32970.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32970 = DisplayStrs32970.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32970").innerHTML = DisplayStrs32970; if (CountActives32970) //alert(SetTimeOutPeriods32970); setTimeout("CountBacks32970(" + (secs+CountSteppers32970) + ")", SetTimeOutPeriods32970); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32970)=="undefined") BackColors32970 = ""; if (typeof(ForeColors32970)=="undefined") ForeColors32970= "white"; if (typeof(TargetDates32970)=="undefined") TargetDates32970 = "10/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32970)=="undefined") DisplayFormats32970 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32970)=="undefined") CountActives32970 = true; if (typeof(FinishMessages32970)=="undefined") FinishMessages32970 = ""; if (typeof(CountSteppers32970)!="number") CountSteppers32970 = -1; if (typeof(LeadingZeros32970)=="undefined") LeadingZeros32970 = true; CountSteppers32970 = Math.ceil(CountSteppers32970); if (CountSteppers32970 == 0) CountActives32970 = false; var SetTimeOutPeriods32970 = (Math.abs(CountSteppers32970)-1)*1000 + 990; puti(BackColors32970, ForeColors32970); var dthens32970 = new Date(TargetDates32970); var dnows32970 = new Date("10/13/2025 8:33:33 PM"); if(CountSteppers32970>0) ddiffs32970 = new Date(dnows32970-dthens32970); else ddiffs32970 = new Date(dthens32970-dnows32970); gsecss32970 = Math.floor(ddiffs32970.valueOf()/1000); CountBacks32970(gsecss32970);