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 (LeadingZeros30353 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30353(secs) { if (secs < 0) { document.getElementById("cntdwns30353").innerHTML = FinishMessages30353; return; } DisplayStrs30353 = DisplayFormats30353.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30353 = DisplayStrs30353.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30353 = DisplayStrs30353.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30353 = DisplayStrs30353.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30353").innerHTML = DisplayStrs30353; if (CountActives30353) //alert(SetTimeOutPeriods30353); setTimeout("CountBacks30353(" + (secs+CountSteppers30353) + ")", SetTimeOutPeriods30353); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30353)=="undefined") BackColors30353 = ""; if (typeof(ForeColors30353)=="undefined") ForeColors30353= "white"; if (typeof(TargetDates30353)=="undefined") TargetDates30353 = "11/15/2024 9:00:00 PM"; if (typeof(DisplayFormats30353)=="undefined") DisplayFormats30353 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30353)=="undefined") CountActives30353 = true; if (typeof(FinishMessages30353)=="undefined") FinishMessages30353 = ""; if (typeof(CountSteppers30353)!="number") CountSteppers30353 = -1; if (typeof(LeadingZeros30353)=="undefined") LeadingZeros30353 = true; CountSteppers30353 = Math.ceil(CountSteppers30353); if (CountSteppers30353 == 0) CountActives30353 = false; var SetTimeOutPeriods30353 = (Math.abs(CountSteppers30353)-1)*1000 + 990; puti(BackColors30353, ForeColors30353); var dthens30353 = new Date(TargetDates30353); var dnows30353 = new Date("11/13/2024 10:19:41 AM"); if(CountSteppers30353>0) ddiffs30353 = new Date(dnows30353-dthens30353); else ddiffs30353 = new Date(dthens30353-dnows30353); gsecss30353 = Math.floor(ddiffs30353.valueOf()/1000); CountBacks30353(gsecss30353);