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 (LeadingZeros30709 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30709(secs) { if (secs < 0) { document.getElementById("cntdwns30709").innerHTML = FinishMessages30709; return; } DisplayStrs30709 = DisplayFormats30709.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30709 = DisplayStrs30709.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30709 = DisplayStrs30709.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30709 = DisplayStrs30709.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30709").innerHTML = DisplayStrs30709; if (CountActives30709) //alert(SetTimeOutPeriods30709); setTimeout("CountBacks30709(" + (secs+CountSteppers30709) + ")", SetTimeOutPeriods30709); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30709)=="undefined") BackColors30709 = ""; if (typeof(ForeColors30709)=="undefined") ForeColors30709= "white"; if (typeof(TargetDates30709)=="undefined") TargetDates30709 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30709)=="undefined") DisplayFormats30709 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30709)=="undefined") CountActives30709 = true; if (typeof(FinishMessages30709)=="undefined") FinishMessages30709 = ""; if (typeof(CountSteppers30709)!="number") CountSteppers30709 = -1; if (typeof(LeadingZeros30709)=="undefined") LeadingZeros30709 = true; CountSteppers30709 = Math.ceil(CountSteppers30709); if (CountSteppers30709 == 0) CountActives30709 = false; var SetTimeOutPeriods30709 = (Math.abs(CountSteppers30709)-1)*1000 + 990; puti(BackColors30709, ForeColors30709); var dthens30709 = new Date(TargetDates30709); var dnows30709 = new Date("10/18/2024 6:09:06 AM"); if(CountSteppers30709>0) ddiffs30709 = new Date(dnows30709-dthens30709); else ddiffs30709 = new Date(dthens30709-dnows30709); gsecss30709 = Math.floor(ddiffs30709.valueOf()/1000); CountBacks30709(gsecss30709);