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 (LeadingZeros30409 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30409(secs) { if (secs < 0) { document.getElementById("cntdwns30409").innerHTML = FinishMessages30409; return; } DisplayStrs30409 = DisplayFormats30409.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30409 = DisplayStrs30409.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30409 = DisplayStrs30409.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30409 = DisplayStrs30409.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30409").innerHTML = DisplayStrs30409; if (CountActives30409) //alert(SetTimeOutPeriods30409); setTimeout("CountBacks30409(" + (secs+CountSteppers30409) + ")", SetTimeOutPeriods30409); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30409)=="undefined") BackColors30409 = ""; if (typeof(ForeColors30409)=="undefined") ForeColors30409= "white"; if (typeof(TargetDates30409)=="undefined") TargetDates30409 = "04/18/2024 10:00:00 PM"; if (typeof(DisplayFormats30409)=="undefined") DisplayFormats30409 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30409)=="undefined") CountActives30409 = true; if (typeof(FinishMessages30409)=="undefined") FinishMessages30409 = ""; if (typeof(CountSteppers30409)!="number") CountSteppers30409 = -1; if (typeof(LeadingZeros30409)=="undefined") LeadingZeros30409 = true; CountSteppers30409 = Math.ceil(CountSteppers30409); if (CountSteppers30409 == 0) CountActives30409 = false; var SetTimeOutPeriods30409 = (Math.abs(CountSteppers30409)-1)*1000 + 990; puti(BackColors30409, ForeColors30409); var dthens30409 = new Date(TargetDates30409); var dnows30409 = new Date("04/29/2024 10:53:39 PM"); if(CountSteppers30409>0) ddiffs30409 = new Date(dnows30409-dthens30409); else ddiffs30409 = new Date(dthens30409-dnows30409); gsecss30409 = Math.floor(ddiffs30409.valueOf()/1000); CountBacks30409(gsecss30409);