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 (LeadingZeros32967 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32967(secs) { if (secs < 0) { document.getElementById("cntdwns32967").innerHTML = FinishMessages32967; return; } DisplayStrs32967 = DisplayFormats32967.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32967 = DisplayStrs32967.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32967 = DisplayStrs32967.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32967 = DisplayStrs32967.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32967").innerHTML = DisplayStrs32967; if (CountActives32967) //alert(SetTimeOutPeriods32967); setTimeout("CountBacks32967(" + (secs+CountSteppers32967) + ")", SetTimeOutPeriods32967); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32967)=="undefined") BackColors32967 = ""; if (typeof(ForeColors32967)=="undefined") ForeColors32967= "white"; if (typeof(TargetDates32967)=="undefined") TargetDates32967 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32967)=="undefined") DisplayFormats32967 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32967)=="undefined") CountActives32967 = true; if (typeof(FinishMessages32967)=="undefined") FinishMessages32967 = ""; if (typeof(CountSteppers32967)!="number") CountSteppers32967 = -1; if (typeof(LeadingZeros32967)=="undefined") LeadingZeros32967 = true; CountSteppers32967 = Math.ceil(CountSteppers32967); if (CountSteppers32967 == 0) CountActives32967 = false; var SetTimeOutPeriods32967 = (Math.abs(CountSteppers32967)-1)*1000 + 990; puti(BackColors32967, ForeColors32967); var dthens32967 = new Date(TargetDates32967); var dnows32967 = new Date("10/15/2025 2:33:06 PM"); if(CountSteppers32967>0) ddiffs32967 = new Date(dnows32967-dthens32967); else ddiffs32967 = new Date(dthens32967-dnows32967); gsecss32967 = Math.floor(ddiffs32967.valueOf()/1000); CountBacks32967(gsecss32967);