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 (LeadingZeros32289 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32289(secs) { if (secs < 0) { document.getElementById("cntdwns32289").innerHTML = FinishMessages32289; return; } DisplayStrs32289 = DisplayFormats32289.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32289 = DisplayStrs32289.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32289 = DisplayStrs32289.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32289 = DisplayStrs32289.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32289").innerHTML = DisplayStrs32289; if (CountActives32289) //alert(SetTimeOutPeriods32289); setTimeout("CountBacks32289(" + (secs+CountSteppers32289) + ")", SetTimeOutPeriods32289); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32289)=="undefined") BackColors32289 = ""; if (typeof(ForeColors32289)=="undefined") ForeColors32289= "white"; if (typeof(TargetDates32289)=="undefined") TargetDates32289 = "05/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32289)=="undefined") DisplayFormats32289 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32289)=="undefined") CountActives32289 = true; if (typeof(FinishMessages32289)=="undefined") FinishMessages32289 = ""; if (typeof(CountSteppers32289)!="number") CountSteppers32289 = -1; if (typeof(LeadingZeros32289)=="undefined") LeadingZeros32289 = true; CountSteppers32289 = Math.ceil(CountSteppers32289); if (CountSteppers32289 == 0) CountActives32289 = false; var SetTimeOutPeriods32289 = (Math.abs(CountSteppers32289)-1)*1000 + 990; puti(BackColors32289, ForeColors32289); var dthens32289 = new Date(TargetDates32289); var dnows32289 = new Date("05/09/2025 4:05:11 PM"); if(CountSteppers32289>0) ddiffs32289 = new Date(dnows32289-dthens32289); else ddiffs32289 = new Date(dthens32289-dnows32289); gsecss32289 = Math.floor(ddiffs32289.valueOf()/1000); CountBacks32289(gsecss32289);