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 (LeadingZeros32337 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32337(secs) { if (secs < 0) { document.getElementById("cntdwns32337").innerHTML = FinishMessages32337; return; } DisplayStrs32337 = DisplayFormats32337.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32337 = DisplayStrs32337.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32337 = DisplayStrs32337.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32337 = DisplayStrs32337.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32337").innerHTML = DisplayStrs32337; if (CountActives32337) //alert(SetTimeOutPeriods32337); setTimeout("CountBacks32337(" + (secs+CountSteppers32337) + ")", SetTimeOutPeriods32337); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32337)=="undefined") BackColors32337 = ""; if (typeof(ForeColors32337)=="undefined") ForeColors32337= "white"; if (typeof(TargetDates32337)=="undefined") TargetDates32337 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32337)=="undefined") DisplayFormats32337 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32337)=="undefined") CountActives32337 = true; if (typeof(FinishMessages32337)=="undefined") FinishMessages32337 = ""; if (typeof(CountSteppers32337)!="number") CountSteppers32337 = -1; if (typeof(LeadingZeros32337)=="undefined") LeadingZeros32337 = true; CountSteppers32337 = Math.ceil(CountSteppers32337); if (CountSteppers32337 == 0) CountActives32337 = false; var SetTimeOutPeriods32337 = (Math.abs(CountSteppers32337)-1)*1000 + 990; puti(BackColors32337, ForeColors32337); var dthens32337 = new Date(TargetDates32337); var dnows32337 = new Date("06/02/2025 7:59:03 AM"); if(CountSteppers32337>0) ddiffs32337 = new Date(dnows32337-dthens32337); else ddiffs32337 = new Date(dthens32337-dnows32337); gsecss32337 = Math.floor(ddiffs32337.valueOf()/1000); CountBacks32337(gsecss32337);