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 (LeadingZeros32764 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32764(secs) { if (secs < 0) { document.getElementById("cntdwns32764").innerHTML = FinishMessages32764; return; } DisplayStrs32764 = DisplayFormats32764.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32764 = DisplayStrs32764.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32764 = DisplayStrs32764.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32764 = DisplayStrs32764.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32764").innerHTML = DisplayStrs32764; if (CountActives32764) //alert(SetTimeOutPeriods32764); setTimeout("CountBacks32764(" + (secs+CountSteppers32764) + ")", SetTimeOutPeriods32764); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32764)=="undefined") BackColors32764 = ""; if (typeof(ForeColors32764)=="undefined") ForeColors32764= "white"; if (typeof(TargetDates32764)=="undefined") TargetDates32764 = "09/02/2025 10:00:00 PM"; if (typeof(DisplayFormats32764)=="undefined") DisplayFormats32764 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32764)=="undefined") CountActives32764 = true; if (typeof(FinishMessages32764)=="undefined") FinishMessages32764 = ""; if (typeof(CountSteppers32764)!="number") CountSteppers32764 = -1; if (typeof(LeadingZeros32764)=="undefined") LeadingZeros32764 = true; CountSteppers32764 = Math.ceil(CountSteppers32764); if (CountSteppers32764 == 0) CountActives32764 = false; var SetTimeOutPeriods32764 = (Math.abs(CountSteppers32764)-1)*1000 + 990; puti(BackColors32764, ForeColors32764); var dthens32764 = new Date(TargetDates32764); var dnows32764 = new Date("09/01/2025 1:10:11 PM"); if(CountSteppers32764>0) ddiffs32764 = new Date(dnows32764-dthens32764); else ddiffs32764 = new Date(dthens32764-dnows32764); gsecss32764 = Math.floor(ddiffs32764.valueOf()/1000); CountBacks32764(gsecss32764);