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 (LeadingZeros32355 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32355(secs) { if (secs < 0) { document.getElementById("cntdwns32355").innerHTML = FinishMessages32355; return; } DisplayStrs32355 = DisplayFormats32355.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32355 = DisplayStrs32355.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32355 = DisplayStrs32355.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32355 = DisplayStrs32355.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32355").innerHTML = DisplayStrs32355; if (CountActives32355) //alert(SetTimeOutPeriods32355); setTimeout("CountBacks32355(" + (secs+CountSteppers32355) + ")", SetTimeOutPeriods32355); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32355)=="undefined") BackColors32355 = ""; if (typeof(ForeColors32355)=="undefined") ForeColors32355= "white"; if (typeof(TargetDates32355)=="undefined") TargetDates32355 = "06/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32355)=="undefined") DisplayFormats32355 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32355)=="undefined") CountActives32355 = true; if (typeof(FinishMessages32355)=="undefined") FinishMessages32355 = ""; if (typeof(CountSteppers32355)!="number") CountSteppers32355 = -1; if (typeof(LeadingZeros32355)=="undefined") LeadingZeros32355 = true; CountSteppers32355 = Math.ceil(CountSteppers32355); if (CountSteppers32355 == 0) CountActives32355 = false; var SetTimeOutPeriods32355 = (Math.abs(CountSteppers32355)-1)*1000 + 990; puti(BackColors32355, ForeColors32355); var dthens32355 = new Date(TargetDates32355); var dnows32355 = new Date("05/31/2025 2:15:37 AM"); if(CountSteppers32355>0) ddiffs32355 = new Date(dnows32355-dthens32355); else ddiffs32355 = new Date(dthens32355-dnows32355); gsecss32355 = Math.floor(ddiffs32355.valueOf()/1000); CountBacks32355(gsecss32355);