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 (LeadingZeros32951 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32951(secs) { if (secs < 0) { document.getElementById("cntdwns32951").innerHTML = FinishMessages32951; return; } DisplayStrs32951 = DisplayFormats32951.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32951 = DisplayStrs32951.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32951 = DisplayStrs32951.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32951 = DisplayStrs32951.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32951").innerHTML = DisplayStrs32951; if (CountActives32951) //alert(SetTimeOutPeriods32951); setTimeout("CountBacks32951(" + (secs+CountSteppers32951) + ")", SetTimeOutPeriods32951); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32951)=="undefined") BackColors32951 = ""; if (typeof(ForeColors32951)=="undefined") ForeColors32951= "white"; if (typeof(TargetDates32951)=="undefined") TargetDates32951 = "10/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32951)=="undefined") DisplayFormats32951 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32951)=="undefined") CountActives32951 = true; if (typeof(FinishMessages32951)=="undefined") FinishMessages32951 = ""; if (typeof(CountSteppers32951)!="number") CountSteppers32951 = -1; if (typeof(LeadingZeros32951)=="undefined") LeadingZeros32951 = true; CountSteppers32951 = Math.ceil(CountSteppers32951); if (CountSteppers32951 == 0) CountActives32951 = false; var SetTimeOutPeriods32951 = (Math.abs(CountSteppers32951)-1)*1000 + 990; puti(BackColors32951, ForeColors32951); var dthens32951 = new Date(TargetDates32951); var dnows32951 = new Date("10/20/2025 2:36:38 AM"); if(CountSteppers32951>0) ddiffs32951 = new Date(dnows32951-dthens32951); else ddiffs32951 = new Date(dthens32951-dnows32951); gsecss32951 = Math.floor(ddiffs32951.valueOf()/1000); CountBacks32951(gsecss32951);