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 (LeadingZeros32055 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32055(secs) { if (secs < 0) { document.getElementById("cntdwns32055").innerHTML = FinishMessages32055; return; } DisplayStrs32055 = DisplayFormats32055.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32055 = DisplayStrs32055.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32055 = DisplayStrs32055.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32055 = DisplayStrs32055.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32055").innerHTML = DisplayStrs32055; if (CountActives32055) //alert(SetTimeOutPeriods32055); setTimeout("CountBacks32055(" + (secs+CountSteppers32055) + ")", SetTimeOutPeriods32055); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32055)=="undefined") BackColors32055 = ""; if (typeof(ForeColors32055)=="undefined") ForeColors32055= "white"; if (typeof(TargetDates32055)=="undefined") TargetDates32055 = "03/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32055)=="undefined") DisplayFormats32055 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32055)=="undefined") CountActives32055 = true; if (typeof(FinishMessages32055)=="undefined") FinishMessages32055 = ""; if (typeof(CountSteppers32055)!="number") CountSteppers32055 = -1; if (typeof(LeadingZeros32055)=="undefined") LeadingZeros32055 = true; CountSteppers32055 = Math.ceil(CountSteppers32055); if (CountSteppers32055 == 0) CountActives32055 = false; var SetTimeOutPeriods32055 = (Math.abs(CountSteppers32055)-1)*1000 + 990; puti(BackColors32055, ForeColors32055); var dthens32055 = new Date(TargetDates32055); var dnows32055 = new Date("03/31/2025 12:22:34 PM"); if(CountSteppers32055>0) ddiffs32055 = new Date(dnows32055-dthens32055); else ddiffs32055 = new Date(dthens32055-dnows32055); gsecss32055 = Math.floor(ddiffs32055.valueOf()/1000); CountBacks32055(gsecss32055);