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 (LeadingZeros32975 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32975(secs) { if (secs < 0) { document.getElementById("cntdwns32975").innerHTML = FinishMessages32975; return; } DisplayStrs32975 = DisplayFormats32975.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32975 = DisplayStrs32975.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32975 = DisplayStrs32975.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32975 = DisplayStrs32975.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32975").innerHTML = DisplayStrs32975; if (CountActives32975) //alert(SetTimeOutPeriods32975); setTimeout("CountBacks32975(" + (secs+CountSteppers32975) + ")", SetTimeOutPeriods32975); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32975)=="undefined") BackColors32975 = ""; if (typeof(ForeColors32975)=="undefined") ForeColors32975= "white"; if (typeof(TargetDates32975)=="undefined") TargetDates32975 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32975)=="undefined") DisplayFormats32975 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32975)=="undefined") CountActives32975 = true; if (typeof(FinishMessages32975)=="undefined") FinishMessages32975 = ""; if (typeof(CountSteppers32975)!="number") CountSteppers32975 = -1; if (typeof(LeadingZeros32975)=="undefined") LeadingZeros32975 = true; CountSteppers32975 = Math.ceil(CountSteppers32975); if (CountSteppers32975 == 0) CountActives32975 = false; var SetTimeOutPeriods32975 = (Math.abs(CountSteppers32975)-1)*1000 + 990; puti(BackColors32975, ForeColors32975); var dthens32975 = new Date(TargetDates32975); var dnows32975 = new Date("10/15/2025 7:49:28 PM"); if(CountSteppers32975>0) ddiffs32975 = new Date(dnows32975-dthens32975); else ddiffs32975 = new Date(dthens32975-dnows32975); gsecss32975 = Math.floor(ddiffs32975.valueOf()/1000); CountBacks32975(gsecss32975);