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 (LeadingZeros32111 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32111(secs) { if (secs < 0) { document.getElementById("cntdwns32111").innerHTML = FinishMessages32111; return; } DisplayStrs32111 = DisplayFormats32111.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32111 = DisplayStrs32111.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32111 = DisplayStrs32111.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32111 = DisplayStrs32111.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32111").innerHTML = DisplayStrs32111; if (CountActives32111) //alert(SetTimeOutPeriods32111); setTimeout("CountBacks32111(" + (secs+CountSteppers32111) + ")", SetTimeOutPeriods32111); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32111)=="undefined") BackColors32111 = ""; if (typeof(ForeColors32111)=="undefined") ForeColors32111= "white"; if (typeof(TargetDates32111)=="undefined") TargetDates32111 = "03/31/2025 10:00:00 PM"; if (typeof(DisplayFormats32111)=="undefined") DisplayFormats32111 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32111)=="undefined") CountActives32111 = true; if (typeof(FinishMessages32111)=="undefined") FinishMessages32111 = ""; if (typeof(CountSteppers32111)!="number") CountSteppers32111 = -1; if (typeof(LeadingZeros32111)=="undefined") LeadingZeros32111 = true; CountSteppers32111 = Math.ceil(CountSteppers32111); if (CountSteppers32111 == 0) CountActives32111 = false; var SetTimeOutPeriods32111 = (Math.abs(CountSteppers32111)-1)*1000 + 990; puti(BackColors32111, ForeColors32111); var dthens32111 = new Date(TargetDates32111); var dnows32111 = new Date("03/31/2025 6:18:24 PM"); if(CountSteppers32111>0) ddiffs32111 = new Date(dnows32111-dthens32111); else ddiffs32111 = new Date(dthens32111-dnows32111); gsecss32111 = Math.floor(ddiffs32111.valueOf()/1000); CountBacks32111(gsecss32111);