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 (LeadingZeros32530 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32530(secs) { if (secs < 0) { document.getElementById("cntdwns32530").innerHTML = FinishMessages32530; return; } DisplayStrs32530 = DisplayFormats32530.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32530 = DisplayStrs32530.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32530 = DisplayStrs32530.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32530 = DisplayStrs32530.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32530").innerHTML = DisplayStrs32530; if (CountActives32530) //alert(SetTimeOutPeriods32530); setTimeout("CountBacks32530(" + (secs+CountSteppers32530) + ")", SetTimeOutPeriods32530); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32530)=="undefined") BackColors32530 = ""; if (typeof(ForeColors32530)=="undefined") ForeColors32530= "white"; if (typeof(TargetDates32530)=="undefined") TargetDates32530 = "06/30/2025 10:00:00 PM"; if (typeof(DisplayFormats32530)=="undefined") DisplayFormats32530 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32530)=="undefined") CountActives32530 = true; if (typeof(FinishMessages32530)=="undefined") FinishMessages32530 = ""; if (typeof(CountSteppers32530)!="number") CountSteppers32530 = -1; if (typeof(LeadingZeros32530)=="undefined") LeadingZeros32530 = true; CountSteppers32530 = Math.ceil(CountSteppers32530); if (CountSteppers32530 == 0) CountActives32530 = false; var SetTimeOutPeriods32530 = (Math.abs(CountSteppers32530)-1)*1000 + 990; puti(BackColors32530, ForeColors32530); var dthens32530 = new Date(TargetDates32530); var dnows32530 = new Date("06/30/2025 6:49:57 PM"); if(CountSteppers32530>0) ddiffs32530 = new Date(dnows32530-dthens32530); else ddiffs32530 = new Date(dthens32530-dnows32530); gsecss32530 = Math.floor(ddiffs32530.valueOf()/1000); CountBacks32530(gsecss32530);