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 (LeadingZeros32849 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32849(secs) { if (secs < 0) { document.getElementById("cntdwns32849").innerHTML = FinishMessages32849; return; } DisplayStrs32849 = DisplayFormats32849.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32849 = DisplayStrs32849.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32849 = DisplayStrs32849.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32849 = DisplayStrs32849.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32849").innerHTML = DisplayStrs32849; if (CountActives32849) //alert(SetTimeOutPeriods32849); setTimeout("CountBacks32849(" + (secs+CountSteppers32849) + ")", SetTimeOutPeriods32849); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32849)=="undefined") BackColors32849 = ""; if (typeof(ForeColors32849)=="undefined") ForeColors32849= "white"; if (typeof(TargetDates32849)=="undefined") TargetDates32849 = "10/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32849)=="undefined") DisplayFormats32849 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32849)=="undefined") CountActives32849 = true; if (typeof(FinishMessages32849)=="undefined") FinishMessages32849 = ""; if (typeof(CountSteppers32849)!="number") CountSteppers32849 = -1; if (typeof(LeadingZeros32849)=="undefined") LeadingZeros32849 = true; CountSteppers32849 = Math.ceil(CountSteppers32849); if (CountSteppers32849 == 0) CountActives32849 = false; var SetTimeOutPeriods32849 = (Math.abs(CountSteppers32849)-1)*1000 + 990; puti(BackColors32849, ForeColors32849); var dthens32849 = new Date(TargetDates32849); var dnows32849 = new Date("10/04/2025 9:41:03 PM"); if(CountSteppers32849>0) ddiffs32849 = new Date(dnows32849-dthens32849); else ddiffs32849 = new Date(dthens32849-dnows32849); gsecss32849 = Math.floor(ddiffs32849.valueOf()/1000); CountBacks32849(gsecss32849);