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 (LeadingZeros32395 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32395(secs) { if (secs < 0) { document.getElementById("cntdwns32395").innerHTML = FinishMessages32395; return; } DisplayStrs32395 = DisplayFormats32395.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32395 = DisplayStrs32395.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32395 = DisplayStrs32395.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32395 = DisplayStrs32395.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32395").innerHTML = DisplayStrs32395; if (CountActives32395) //alert(SetTimeOutPeriods32395); setTimeout("CountBacks32395(" + (secs+CountSteppers32395) + ")", SetTimeOutPeriods32395); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32395)=="undefined") BackColors32395 = ""; if (typeof(ForeColors32395)=="undefined") ForeColors32395= "white"; if (typeof(TargetDates32395)=="undefined") TargetDates32395 = "05/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32395)=="undefined") DisplayFormats32395 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32395)=="undefined") CountActives32395 = true; if (typeof(FinishMessages32395)=="undefined") FinishMessages32395 = ""; if (typeof(CountSteppers32395)!="number") CountSteppers32395 = -1; if (typeof(LeadingZeros32395)=="undefined") LeadingZeros32395 = true; CountSteppers32395 = Math.ceil(CountSteppers32395); if (CountSteppers32395 == 0) CountActives32395 = false; var SetTimeOutPeriods32395 = (Math.abs(CountSteppers32395)-1)*1000 + 990; puti(BackColors32395, ForeColors32395); var dthens32395 = new Date(TargetDates32395); var dnows32395 = new Date("05/30/2025 11:09:09 AM"); if(CountSteppers32395>0) ddiffs32395 = new Date(dnows32395-dthens32395); else ddiffs32395 = new Date(dthens32395-dnows32395); gsecss32395 = Math.floor(ddiffs32395.valueOf()/1000); CountBacks32395(gsecss32395);