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 (LeadingZeros32050 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32050(secs) { if (secs < 0) { document.getElementById("cntdwns32050").innerHTML = FinishMessages32050; return; } DisplayStrs32050 = DisplayFormats32050.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32050 = DisplayStrs32050.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32050 = DisplayStrs32050.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32050 = DisplayStrs32050.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32050").innerHTML = DisplayStrs32050; if (CountActives32050) //alert(SetTimeOutPeriods32050); setTimeout("CountBacks32050(" + (secs+CountSteppers32050) + ")", SetTimeOutPeriods32050); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32050)=="undefined") BackColors32050 = ""; if (typeof(ForeColors32050)=="undefined") ForeColors32050= "white"; if (typeof(TargetDates32050)=="undefined") TargetDates32050 = "04/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32050)=="undefined") DisplayFormats32050 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32050)=="undefined") CountActives32050 = true; if (typeof(FinishMessages32050)=="undefined") FinishMessages32050 = ""; if (typeof(CountSteppers32050)!="number") CountSteppers32050 = -1; if (typeof(LeadingZeros32050)=="undefined") LeadingZeros32050 = true; CountSteppers32050 = Math.ceil(CountSteppers32050); if (CountSteppers32050 == 0) CountActives32050 = false; var SetTimeOutPeriods32050 = (Math.abs(CountSteppers32050)-1)*1000 + 990; puti(BackColors32050, ForeColors32050); var dthens32050 = new Date(TargetDates32050); var dnows32050 = new Date("04/01/2025 2:13:54 AM"); if(CountSteppers32050>0) ddiffs32050 = new Date(dnows32050-dthens32050); else ddiffs32050 = new Date(dthens32050-dnows32050); gsecss32050 = Math.floor(ddiffs32050.valueOf()/1000); CountBacks32050(gsecss32050);