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 (LeadingZeros30377 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30377(secs) { if (secs < 0) { document.getElementById("cntdwns30377").innerHTML = FinishMessages30377; return; } DisplayStrs30377 = DisplayFormats30377.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30377 = DisplayStrs30377.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30377 = DisplayStrs30377.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30377 = DisplayStrs30377.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30377").innerHTML = DisplayStrs30377; if (CountActives30377) //alert(SetTimeOutPeriods30377); setTimeout("CountBacks30377(" + (secs+CountSteppers30377) + ")", SetTimeOutPeriods30377); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30377)=="undefined") BackColors30377 = ""; if (typeof(ForeColors30377)=="undefined") ForeColors30377= "white"; if (typeof(TargetDates30377)=="undefined") TargetDates30377 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30377)=="undefined") DisplayFormats30377 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30377)=="undefined") CountActives30377 = true; if (typeof(FinishMessages30377)=="undefined") FinishMessages30377 = ""; if (typeof(CountSteppers30377)!="number") CountSteppers30377 = -1; if (typeof(LeadingZeros30377)=="undefined") LeadingZeros30377 = true; CountSteppers30377 = Math.ceil(CountSteppers30377); if (CountSteppers30377 == 0) CountActives30377 = false; var SetTimeOutPeriods30377 = (Math.abs(CountSteppers30377)-1)*1000 + 990; puti(BackColors30377, ForeColors30377); var dthens30377 = new Date(TargetDates30377); var dnows30377 = new Date("05/02/2024 10:09:23 PM"); if(CountSteppers30377>0) ddiffs30377 = new Date(dnows30377-dthens30377); else ddiffs30377 = new Date(dthens30377-dnows30377); gsecss30377 = Math.floor(ddiffs30377.valueOf()/1000); CountBacks30377(gsecss30377);