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 (LeadingZeros30616 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30616(secs) { if (secs < 0) { document.getElementById("cntdwns30616").innerHTML = FinishMessages30616; return; } DisplayStrs30616 = DisplayFormats30616.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30616 = DisplayStrs30616.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30616 = DisplayStrs30616.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30616 = DisplayStrs30616.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30616").innerHTML = DisplayStrs30616; if (CountActives30616) //alert(SetTimeOutPeriods30616); setTimeout("CountBacks30616(" + (secs+CountSteppers30616) + ")", SetTimeOutPeriods30616); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30616)=="undefined") BackColors30616 = ""; if (typeof(ForeColors30616)=="undefined") ForeColors30616= "white"; if (typeof(TargetDates30616)=="undefined") TargetDates30616 = "11/14/2024 9:00:00 PM"; if (typeof(DisplayFormats30616)=="undefined") DisplayFormats30616 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30616)=="undefined") CountActives30616 = true; if (typeof(FinishMessages30616)=="undefined") FinishMessages30616 = ""; if (typeof(CountSteppers30616)!="number") CountSteppers30616 = -1; if (typeof(LeadingZeros30616)=="undefined") LeadingZeros30616 = true; CountSteppers30616 = Math.ceil(CountSteppers30616); if (CountSteppers30616 == 0) CountActives30616 = false; var SetTimeOutPeriods30616 = (Math.abs(CountSteppers30616)-1)*1000 + 990; puti(BackColors30616, ForeColors30616); var dthens30616 = new Date(TargetDates30616); var dnows30616 = new Date("11/13/2024 2:03:33 AM"); if(CountSteppers30616>0) ddiffs30616 = new Date(dnows30616-dthens30616); else ddiffs30616 = new Date(dthens30616-dnows30616); gsecss30616 = Math.floor(ddiffs30616.valueOf()/1000); CountBacks30616(gsecss30616);