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 (LeadingZeros32942 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32942(secs) { if (secs < 0) { document.getElementById("cntdwns32942").innerHTML = FinishMessages32942; return; } DisplayStrs32942 = DisplayFormats32942.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32942 = DisplayStrs32942.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32942 = DisplayStrs32942.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32942 = DisplayStrs32942.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32942").innerHTML = DisplayStrs32942; if (CountActives32942) //alert(SetTimeOutPeriods32942); setTimeout("CountBacks32942(" + (secs+CountSteppers32942) + ")", SetTimeOutPeriods32942); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32942)=="undefined") BackColors32942 = ""; if (typeof(ForeColors32942)=="undefined") ForeColors32942= "white"; if (typeof(TargetDates32942)=="undefined") TargetDates32942 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32942)=="undefined") DisplayFormats32942 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32942)=="undefined") CountActives32942 = true; if (typeof(FinishMessages32942)=="undefined") FinishMessages32942 = ""; if (typeof(CountSteppers32942)!="number") CountSteppers32942 = -1; if (typeof(LeadingZeros32942)=="undefined") LeadingZeros32942 = true; CountSteppers32942 = Math.ceil(CountSteppers32942); if (CountSteppers32942 == 0) CountActives32942 = false; var SetTimeOutPeriods32942 = (Math.abs(CountSteppers32942)-1)*1000 + 990; puti(BackColors32942, ForeColors32942); var dthens32942 = new Date(TargetDates32942); var dnows32942 = new Date("10/08/2025 9:42:44 PM"); if(CountSteppers32942>0) ddiffs32942 = new Date(dnows32942-dthens32942); else ddiffs32942 = new Date(dthens32942-dnows32942); gsecss32942 = Math.floor(ddiffs32942.valueOf()/1000); CountBacks32942(gsecss32942);