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 (LeadingZeros32486 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32486(secs) { if (secs < 0) { document.getElementById("cntdwns32486").innerHTML = FinishMessages32486; return; } DisplayStrs32486 = DisplayFormats32486.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32486 = DisplayStrs32486.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32486 = DisplayStrs32486.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32486 = DisplayStrs32486.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32486").innerHTML = DisplayStrs32486; if (CountActives32486) //alert(SetTimeOutPeriods32486); setTimeout("CountBacks32486(" + (secs+CountSteppers32486) + ")", SetTimeOutPeriods32486); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32486)=="undefined") BackColors32486 = ""; if (typeof(ForeColors32486)=="undefined") ForeColors32486= "white"; if (typeof(TargetDates32486)=="undefined") TargetDates32486 = "06/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32486)=="undefined") DisplayFormats32486 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32486)=="undefined") CountActives32486 = true; if (typeof(FinishMessages32486)=="undefined") FinishMessages32486 = ""; if (typeof(CountSteppers32486)!="number") CountSteppers32486 = -1; if (typeof(LeadingZeros32486)=="undefined") LeadingZeros32486 = true; CountSteppers32486 = Math.ceil(CountSteppers32486); if (CountSteppers32486 == 0) CountActives32486 = false; var SetTimeOutPeriods32486 = (Math.abs(CountSteppers32486)-1)*1000 + 990; puti(BackColors32486, ForeColors32486); var dthens32486 = new Date(TargetDates32486); var dnows32486 = new Date("06/27/2025 4:57:09 AM"); if(CountSteppers32486>0) ddiffs32486 = new Date(dnows32486-dthens32486); else ddiffs32486 = new Date(dthens32486-dnows32486); gsecss32486 = Math.floor(ddiffs32486.valueOf()/1000); CountBacks32486(gsecss32486);