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 (LeadingZeros32377 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32377(secs) { if (secs < 0) { document.getElementById("cntdwns32377").innerHTML = FinishMessages32377; return; } DisplayStrs32377 = DisplayFormats32377.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32377 = DisplayStrs32377.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32377 = DisplayStrs32377.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32377 = DisplayStrs32377.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32377").innerHTML = DisplayStrs32377; if (CountActives32377) //alert(SetTimeOutPeriods32377); setTimeout("CountBacks32377(" + (secs+CountSteppers32377) + ")", SetTimeOutPeriods32377); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32377)=="undefined") BackColors32377 = ""; if (typeof(ForeColors32377)=="undefined") ForeColors32377= "white"; if (typeof(TargetDates32377)=="undefined") TargetDates32377 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32377)=="undefined") DisplayFormats32377 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32377)=="undefined") CountActives32377 = true; if (typeof(FinishMessages32377)=="undefined") FinishMessages32377 = ""; if (typeof(CountSteppers32377)!="number") CountSteppers32377 = -1; if (typeof(LeadingZeros32377)=="undefined") LeadingZeros32377 = true; CountSteppers32377 = Math.ceil(CountSteppers32377); if (CountSteppers32377 == 0) CountActives32377 = false; var SetTimeOutPeriods32377 = (Math.abs(CountSteppers32377)-1)*1000 + 990; puti(BackColors32377, ForeColors32377); var dthens32377 = new Date(TargetDates32377); var dnows32377 = new Date("06/01/2025 8:47:17 AM"); if(CountSteppers32377>0) ddiffs32377 = new Date(dnows32377-dthens32377); else ddiffs32377 = new Date(dthens32377-dnows32377); gsecss32377 = Math.floor(ddiffs32377.valueOf()/1000); CountBacks32377(gsecss32377);