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 (LeadingZeros32916 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32916(secs) { if (secs < 0) { document.getElementById("cntdwns32916").innerHTML = FinishMessages32916; return; } DisplayStrs32916 = DisplayFormats32916.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32916 = DisplayStrs32916.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32916 = DisplayStrs32916.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32916 = DisplayStrs32916.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32916").innerHTML = DisplayStrs32916; if (CountActives32916) //alert(SetTimeOutPeriods32916); setTimeout("CountBacks32916(" + (secs+CountSteppers32916) + ")", SetTimeOutPeriods32916); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32916)=="undefined") BackColors32916 = ""; if (typeof(ForeColors32916)=="undefined") ForeColors32916= "white"; if (typeof(TargetDates32916)=="undefined") TargetDates32916 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32916)=="undefined") DisplayFormats32916 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32916)=="undefined") CountActives32916 = true; if (typeof(FinishMessages32916)=="undefined") FinishMessages32916 = ""; if (typeof(CountSteppers32916)!="number") CountSteppers32916 = -1; if (typeof(LeadingZeros32916)=="undefined") LeadingZeros32916 = true; CountSteppers32916 = Math.ceil(CountSteppers32916); if (CountSteppers32916 == 0) CountActives32916 = false; var SetTimeOutPeriods32916 = (Math.abs(CountSteppers32916)-1)*1000 + 990; puti(BackColors32916, ForeColors32916); var dthens32916 = new Date(TargetDates32916); var dnows32916 = new Date("10/09/2025 11:53:22 AM"); if(CountSteppers32916>0) ddiffs32916 = new Date(dnows32916-dthens32916); else ddiffs32916 = new Date(dthens32916-dnows32916); gsecss32916 = Math.floor(ddiffs32916.valueOf()/1000); CountBacks32916(gsecss32916);