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 (LeadingZeros30690 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30690(secs) { if (secs < 0) { document.getElementById("cntdwns30690").innerHTML = FinishMessages30690; return; } DisplayStrs30690 = DisplayFormats30690.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30690 = DisplayStrs30690.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30690 = DisplayStrs30690.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30690 = DisplayStrs30690.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30690").innerHTML = DisplayStrs30690; if (CountActives30690) //alert(SetTimeOutPeriods30690); setTimeout("CountBacks30690(" + (secs+CountSteppers30690) + ")", SetTimeOutPeriods30690); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30690)=="undefined") BackColors30690 = ""; if (typeof(ForeColors30690)=="undefined") ForeColors30690= "white"; if (typeof(TargetDates30690)=="undefined") TargetDates30690 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30690)=="undefined") DisplayFormats30690 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30690)=="undefined") CountActives30690 = true; if (typeof(FinishMessages30690)=="undefined") FinishMessages30690 = ""; if (typeof(CountSteppers30690)!="number") CountSteppers30690 = -1; if (typeof(LeadingZeros30690)=="undefined") LeadingZeros30690 = true; CountSteppers30690 = Math.ceil(CountSteppers30690); if (CountSteppers30690 == 0) CountActives30690 = false; var SetTimeOutPeriods30690 = (Math.abs(CountSteppers30690)-1)*1000 + 990; puti(BackColors30690, ForeColors30690); var dthens30690 = new Date(TargetDates30690); var dnows30690 = new Date("09/08/2024 4:01:37 AM"); if(CountSteppers30690>0) ddiffs30690 = new Date(dnows30690-dthens30690); else ddiffs30690 = new Date(dthens30690-dnows30690); gsecss30690 = Math.floor(ddiffs30690.valueOf()/1000); CountBacks30690(gsecss30690);