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 (LeadingZeros32321 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32321(secs) { if (secs < 0) { document.getElementById("cntdwns32321").innerHTML = FinishMessages32321; return; } DisplayStrs32321 = DisplayFormats32321.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32321 = DisplayStrs32321.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32321 = DisplayStrs32321.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32321 = DisplayStrs32321.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32321").innerHTML = DisplayStrs32321; if (CountActives32321) //alert(SetTimeOutPeriods32321); setTimeout("CountBacks32321(" + (secs+CountSteppers32321) + ")", SetTimeOutPeriods32321); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32321)=="undefined") BackColors32321 = ""; if (typeof(ForeColors32321)=="undefined") ForeColors32321= "white"; if (typeof(TargetDates32321)=="undefined") TargetDates32321 = "05/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32321)=="undefined") DisplayFormats32321 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32321)=="undefined") CountActives32321 = true; if (typeof(FinishMessages32321)=="undefined") FinishMessages32321 = ""; if (typeof(CountSteppers32321)!="number") CountSteppers32321 = -1; if (typeof(LeadingZeros32321)=="undefined") LeadingZeros32321 = true; CountSteppers32321 = Math.ceil(CountSteppers32321); if (CountSteppers32321 == 0) CountActives32321 = false; var SetTimeOutPeriods32321 = (Math.abs(CountSteppers32321)-1)*1000 + 990; puti(BackColors32321, ForeColors32321); var dthens32321 = new Date(TargetDates32321); var dnows32321 = new Date("05/30/2025 5:28:48 AM"); if(CountSteppers32321>0) ddiffs32321 = new Date(dnows32321-dthens32321); else ddiffs32321 = new Date(dthens32321-dnows32321); gsecss32321 = Math.floor(ddiffs32321.valueOf()/1000); CountBacks32321(gsecss32321);