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 (LeadingZeros32384 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32384(secs) { if (secs < 0) { document.getElementById("cntdwns32384").innerHTML = FinishMessages32384; return; } DisplayStrs32384 = DisplayFormats32384.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32384 = DisplayStrs32384.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32384 = DisplayStrs32384.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32384 = DisplayStrs32384.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32384").innerHTML = DisplayStrs32384; if (CountActives32384) //alert(SetTimeOutPeriods32384); setTimeout("CountBacks32384(" + (secs+CountSteppers32384) + ")", SetTimeOutPeriods32384); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32384)=="undefined") BackColors32384 = ""; if (typeof(ForeColors32384)=="undefined") ForeColors32384= "white"; if (typeof(TargetDates32384)=="undefined") TargetDates32384 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32384)=="undefined") DisplayFormats32384 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32384)=="undefined") CountActives32384 = true; if (typeof(FinishMessages32384)=="undefined") FinishMessages32384 = ""; if (typeof(CountSteppers32384)!="number") CountSteppers32384 = -1; if (typeof(LeadingZeros32384)=="undefined") LeadingZeros32384 = true; CountSteppers32384 = Math.ceil(CountSteppers32384); if (CountSteppers32384 == 0) CountActives32384 = false; var SetTimeOutPeriods32384 = (Math.abs(CountSteppers32384)-1)*1000 + 990; puti(BackColors32384, ForeColors32384); var dthens32384 = new Date(TargetDates32384); var dnows32384 = new Date("06/01/2025 8:47:17 AM"); if(CountSteppers32384>0) ddiffs32384 = new Date(dnows32384-dthens32384); else ddiffs32384 = new Date(dthens32384-dnows32384); gsecss32384 = Math.floor(ddiffs32384.valueOf()/1000); CountBacks32384(gsecss32384);