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 (LeadingZeros32274 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32274(secs) { if (secs < 0) { document.getElementById("cntdwns32274").innerHTML = FinishMessages32274; return; } DisplayStrs32274 = DisplayFormats32274.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32274 = DisplayStrs32274.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32274 = DisplayStrs32274.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32274 = DisplayStrs32274.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32274").innerHTML = DisplayStrs32274; if (CountActives32274) //alert(SetTimeOutPeriods32274); setTimeout("CountBacks32274(" + (secs+CountSteppers32274) + ")", SetTimeOutPeriods32274); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32274)=="undefined") BackColors32274 = ""; if (typeof(ForeColors32274)=="undefined") ForeColors32274= "white"; if (typeof(TargetDates32274)=="undefined") TargetDates32274 = "06/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32274)=="undefined") DisplayFormats32274 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32274)=="undefined") CountActives32274 = true; if (typeof(FinishMessages32274)=="undefined") FinishMessages32274 = ""; if (typeof(CountSteppers32274)!="number") CountSteppers32274 = -1; if (typeof(LeadingZeros32274)=="undefined") LeadingZeros32274 = true; CountSteppers32274 = Math.ceil(CountSteppers32274); if (CountSteppers32274 == 0) CountActives32274 = false; var SetTimeOutPeriods32274 = (Math.abs(CountSteppers32274)-1)*1000 + 990; puti(BackColors32274, ForeColors32274); var dthens32274 = new Date(TargetDates32274); var dnows32274 = new Date("06/05/2025 2:03:05 AM"); if(CountSteppers32274>0) ddiffs32274 = new Date(dnows32274-dthens32274); else ddiffs32274 = new Date(dthens32274-dnows32274); gsecss32274 = Math.floor(ddiffs32274.valueOf()/1000); CountBacks32274(gsecss32274);