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 (LeadingZeros30751 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30751(secs) { if (secs < 0) { document.getElementById("cntdwns30751").innerHTML = FinishMessages30751; return; } DisplayStrs30751 = DisplayFormats30751.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30751 = DisplayStrs30751.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30751 = DisplayStrs30751.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30751 = DisplayStrs30751.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30751").innerHTML = DisplayStrs30751; if (CountActives30751) //alert(SetTimeOutPeriods30751); setTimeout("CountBacks30751(" + (secs+CountSteppers30751) + ")", SetTimeOutPeriods30751); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30751)=="undefined") BackColors30751 = ""; if (typeof(ForeColors30751)=="undefined") ForeColors30751= "white"; if (typeof(TargetDates30751)=="undefined") TargetDates30751 = "09/23/2024 10:00:00 PM"; if (typeof(DisplayFormats30751)=="undefined") DisplayFormats30751 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30751)=="undefined") CountActives30751 = true; if (typeof(FinishMessages30751)=="undefined") FinishMessages30751 = ""; if (typeof(CountSteppers30751)!="number") CountSteppers30751 = -1; if (typeof(LeadingZeros30751)=="undefined") LeadingZeros30751 = true; CountSteppers30751 = Math.ceil(CountSteppers30751); if (CountSteppers30751 == 0) CountActives30751 = false; var SetTimeOutPeriods30751 = (Math.abs(CountSteppers30751)-1)*1000 + 990; puti(BackColors30751, ForeColors30751); var dthens30751 = new Date(TargetDates30751); var dnows30751 = new Date("09/27/2024 1:31:06 AM"); if(CountSteppers30751>0) ddiffs30751 = new Date(dnows30751-dthens30751); else ddiffs30751 = new Date(dthens30751-dnows30751); gsecss30751 = Math.floor(ddiffs30751.valueOf()/1000); CountBacks30751(gsecss30751);