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 (LeadingZeros32772 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32772(secs) { if (secs < 0) { document.getElementById("cntdwns32772").innerHTML = FinishMessages32772; return; } DisplayStrs32772 = DisplayFormats32772.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32772 = DisplayStrs32772.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32772 = DisplayStrs32772.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32772 = DisplayStrs32772.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32772").innerHTML = DisplayStrs32772; if (CountActives32772) //alert(SetTimeOutPeriods32772); setTimeout("CountBacks32772(" + (secs+CountSteppers32772) + ")", SetTimeOutPeriods32772); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32772)=="undefined") BackColors32772 = ""; if (typeof(ForeColors32772)=="undefined") ForeColors32772= "white"; if (typeof(TargetDates32772)=="undefined") TargetDates32772 = "09/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32772)=="undefined") DisplayFormats32772 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32772)=="undefined") CountActives32772 = true; if (typeof(FinishMessages32772)=="undefined") FinishMessages32772 = ""; if (typeof(CountSteppers32772)!="number") CountSteppers32772 = -1; if (typeof(LeadingZeros32772)=="undefined") LeadingZeros32772 = true; CountSteppers32772 = Math.ceil(CountSteppers32772); if (CountSteppers32772 == 0) CountActives32772 = false; var SetTimeOutPeriods32772 = (Math.abs(CountSteppers32772)-1)*1000 + 990; puti(BackColors32772, ForeColors32772); var dthens32772 = new Date(TargetDates32772); var dnows32772 = new Date("09/03/2025 5:10:25 PM"); if(CountSteppers32772>0) ddiffs32772 = new Date(dnows32772-dthens32772); else ddiffs32772 = new Date(dthens32772-dnows32772); gsecss32772 = Math.floor(ddiffs32772.valueOf()/1000); CountBacks32772(gsecss32772);