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 (LeadingZeros32766 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32766(secs) { if (secs < 0) { document.getElementById("cntdwns32766").innerHTML = FinishMessages32766; return; } DisplayStrs32766 = DisplayFormats32766.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32766 = DisplayStrs32766.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32766 = DisplayStrs32766.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32766 = DisplayStrs32766.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32766").innerHTML = DisplayStrs32766; if (CountActives32766) //alert(SetTimeOutPeriods32766); setTimeout("CountBacks32766(" + (secs+CountSteppers32766) + ")", SetTimeOutPeriods32766); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32766)=="undefined") BackColors32766 = ""; if (typeof(ForeColors32766)=="undefined") ForeColors32766= "white"; if (typeof(TargetDates32766)=="undefined") TargetDates32766 = "10/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32766)=="undefined") DisplayFormats32766 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32766)=="undefined") CountActives32766 = true; if (typeof(FinishMessages32766)=="undefined") FinishMessages32766 = ""; if (typeof(CountSteppers32766)!="number") CountSteppers32766 = -1; if (typeof(LeadingZeros32766)=="undefined") LeadingZeros32766 = true; CountSteppers32766 = Math.ceil(CountSteppers32766); if (CountSteppers32766 == 0) CountActives32766 = false; var SetTimeOutPeriods32766 = (Math.abs(CountSteppers32766)-1)*1000 + 990; puti(BackColors32766, ForeColors32766); var dthens32766 = new Date(TargetDates32766); var dnows32766 = new Date("09/30/2025 2:27:40 AM"); if(CountSteppers32766>0) ddiffs32766 = new Date(dnows32766-dthens32766); else ddiffs32766 = new Date(dthens32766-dnows32766); gsecss32766 = Math.floor(ddiffs32766.valueOf()/1000); CountBacks32766(gsecss32766);