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 (LeadingZeros32381 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32381(secs) { if (secs < 0) { document.getElementById("cntdwns32381").innerHTML = FinishMessages32381; return; } DisplayStrs32381 = DisplayFormats32381.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32381 = DisplayStrs32381.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32381 = DisplayStrs32381.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32381 = DisplayStrs32381.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32381").innerHTML = DisplayStrs32381; if (CountActives32381) //alert(SetTimeOutPeriods32381); setTimeout("CountBacks32381(" + (secs+CountSteppers32381) + ")", SetTimeOutPeriods32381); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32381)=="undefined") BackColors32381 = ""; if (typeof(ForeColors32381)=="undefined") ForeColors32381= "white"; if (typeof(TargetDates32381)=="undefined") TargetDates32381 = "06/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32381)=="undefined") DisplayFormats32381 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32381)=="undefined") CountActives32381 = true; if (typeof(FinishMessages32381)=="undefined") FinishMessages32381 = ""; if (typeof(CountSteppers32381)!="number") CountSteppers32381 = -1; if (typeof(LeadingZeros32381)=="undefined") LeadingZeros32381 = true; CountSteppers32381 = Math.ceil(CountSteppers32381); if (CountSteppers32381 == 0) CountActives32381 = false; var SetTimeOutPeriods32381 = (Math.abs(CountSteppers32381)-1)*1000 + 990; puti(BackColors32381, ForeColors32381); var dthens32381 = new Date(TargetDates32381); var dnows32381 = new Date("06/14/2025 7:38:30 AM"); if(CountSteppers32381>0) ddiffs32381 = new Date(dnows32381-dthens32381); else ddiffs32381 = new Date(dthens32381-dnows32381); gsecss32381 = Math.floor(ddiffs32381.valueOf()/1000); CountBacks32381(gsecss32381);