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 (LeadingZeros30364 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30364(secs) { if (secs < 0) { document.getElementById("cntdwns30364").innerHTML = FinishMessages30364; return; } DisplayStrs30364 = DisplayFormats30364.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30364 = DisplayStrs30364.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30364 = DisplayStrs30364.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30364 = DisplayStrs30364.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30364").innerHTML = DisplayStrs30364; if (CountActives30364) //alert(SetTimeOutPeriods30364); setTimeout("CountBacks30364(" + (secs+CountSteppers30364) + ")", SetTimeOutPeriods30364); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30364)=="undefined") BackColors30364 = ""; if (typeof(ForeColors30364)=="undefined") ForeColors30364= "white"; if (typeof(TargetDates30364)=="undefined") TargetDates30364 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30364)=="undefined") DisplayFormats30364 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30364)=="undefined") CountActives30364 = true; if (typeof(FinishMessages30364)=="undefined") FinishMessages30364 = ""; if (typeof(CountSteppers30364)!="number") CountSteppers30364 = -1; if (typeof(LeadingZeros30364)=="undefined") LeadingZeros30364 = true; CountSteppers30364 = Math.ceil(CountSteppers30364); if (CountSteppers30364 == 0) CountActives30364 = false; var SetTimeOutPeriods30364 = (Math.abs(CountSteppers30364)-1)*1000 + 990; puti(BackColors30364, ForeColors30364); var dthens30364 = new Date(TargetDates30364); var dnows30364 = new Date("05/07/2024 7:43:10 PM"); if(CountSteppers30364>0) ddiffs30364 = new Date(dnows30364-dthens30364); else ddiffs30364 = new Date(dthens30364-dnows30364); gsecss30364 = Math.floor(ddiffs30364.valueOf()/1000); CountBacks30364(gsecss30364);