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 (LeadingZeros32775 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32775(secs) { if (secs < 0) { document.getElementById("cntdwns32775").innerHTML = FinishMessages32775; return; } DisplayStrs32775 = DisplayFormats32775.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32775 = DisplayStrs32775.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32775 = DisplayStrs32775.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32775 = DisplayStrs32775.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32775").innerHTML = DisplayStrs32775; if (CountActives32775) //alert(SetTimeOutPeriods32775); setTimeout("CountBacks32775(" + (secs+CountSteppers32775) + ")", SetTimeOutPeriods32775); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32775)=="undefined") BackColors32775 = ""; if (typeof(ForeColors32775)=="undefined") ForeColors32775= "white"; if (typeof(TargetDates32775)=="undefined") TargetDates32775 = "09/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32775)=="undefined") DisplayFormats32775 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32775)=="undefined") CountActives32775 = true; if (typeof(FinishMessages32775)=="undefined") FinishMessages32775 = ""; if (typeof(CountSteppers32775)!="number") CountSteppers32775 = -1; if (typeof(LeadingZeros32775)=="undefined") LeadingZeros32775 = true; CountSteppers32775 = Math.ceil(CountSteppers32775); if (CountSteppers32775 == 0) CountActives32775 = false; var SetTimeOutPeriods32775 = (Math.abs(CountSteppers32775)-1)*1000 + 990; puti(BackColors32775, ForeColors32775); var dthens32775 = new Date(TargetDates32775); var dnows32775 = new Date("09/16/2025 12:35:32 AM"); if(CountSteppers32775>0) ddiffs32775 = new Date(dnows32775-dthens32775); else ddiffs32775 = new Date(dthens32775-dnows32775); gsecss32775 = Math.floor(ddiffs32775.valueOf()/1000); CountBacks32775(gsecss32775);