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 (LeadingZeros32114 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32114(secs) { if (secs < 0) { document.getElementById("cntdwns32114").innerHTML = FinishMessages32114; return; } DisplayStrs32114 = DisplayFormats32114.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32114 = DisplayStrs32114.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32114 = DisplayStrs32114.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32114 = DisplayStrs32114.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32114").innerHTML = DisplayStrs32114; if (CountActives32114) //alert(SetTimeOutPeriods32114); setTimeout("CountBacks32114(" + (secs+CountSteppers32114) + ")", SetTimeOutPeriods32114); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32114)=="undefined") BackColors32114 = ""; if (typeof(ForeColors32114)=="undefined") ForeColors32114= "white"; if (typeof(TargetDates32114)=="undefined") TargetDates32114 = "04/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32114)=="undefined") DisplayFormats32114 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32114)=="undefined") CountActives32114 = true; if (typeof(FinishMessages32114)=="undefined") FinishMessages32114 = ""; if (typeof(CountSteppers32114)!="number") CountSteppers32114 = -1; if (typeof(LeadingZeros32114)=="undefined") LeadingZeros32114 = true; CountSteppers32114 = Math.ceil(CountSteppers32114); if (CountSteppers32114 == 0) CountActives32114 = false; var SetTimeOutPeriods32114 = (Math.abs(CountSteppers32114)-1)*1000 + 990; puti(BackColors32114, ForeColors32114); var dthens32114 = new Date(TargetDates32114); var dnows32114 = new Date("04/19/2025 2:08:37 AM"); if(CountSteppers32114>0) ddiffs32114 = new Date(dnows32114-dthens32114); else ddiffs32114 = new Date(dthens32114-dnows32114); gsecss32114 = Math.floor(ddiffs32114.valueOf()/1000); CountBacks32114(gsecss32114);