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 (LeadingZeros32903 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32903(secs) { if (secs < 0) { document.getElementById("cntdwns32903").innerHTML = FinishMessages32903; return; } DisplayStrs32903 = DisplayFormats32903.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32903 = DisplayStrs32903.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32903 = DisplayStrs32903.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32903 = DisplayStrs32903.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32903").innerHTML = DisplayStrs32903; if (CountActives32903) //alert(SetTimeOutPeriods32903); setTimeout("CountBacks32903(" + (secs+CountSteppers32903) + ")", SetTimeOutPeriods32903); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32903)=="undefined") BackColors32903 = ""; if (typeof(ForeColors32903)=="undefined") ForeColors32903= "white"; if (typeof(TargetDates32903)=="undefined") TargetDates32903 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32903)=="undefined") DisplayFormats32903 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32903)=="undefined") CountActives32903 = true; if (typeof(FinishMessages32903)=="undefined") FinishMessages32903 = ""; if (typeof(CountSteppers32903)!="number") CountSteppers32903 = -1; if (typeof(LeadingZeros32903)=="undefined") LeadingZeros32903 = true; CountSteppers32903 = Math.ceil(CountSteppers32903); if (CountSteppers32903 == 0) CountActives32903 = false; var SetTimeOutPeriods32903 = (Math.abs(CountSteppers32903)-1)*1000 + 990; puti(BackColors32903, ForeColors32903); var dthens32903 = new Date(TargetDates32903); var dnows32903 = new Date("10/09/2025 3:24:58 PM"); if(CountSteppers32903>0) ddiffs32903 = new Date(dnows32903-dthens32903); else ddiffs32903 = new Date(dthens32903-dnows32903); gsecss32903 = Math.floor(ddiffs32903.valueOf()/1000); CountBacks32903(gsecss32903);