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 (LeadingZeros30343 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30343(secs) { if (secs < 0) { document.getElementById("cntdwns30343").innerHTML = FinishMessages30343; return; } DisplayStrs30343 = DisplayFormats30343.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30343 = DisplayStrs30343.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30343 = DisplayStrs30343.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30343 = DisplayStrs30343.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30343").innerHTML = DisplayStrs30343; if (CountActives30343) //alert(SetTimeOutPeriods30343); setTimeout("CountBacks30343(" + (secs+CountSteppers30343) + ")", SetTimeOutPeriods30343); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30343)=="undefined") BackColors30343 = ""; if (typeof(ForeColors30343)=="undefined") ForeColors30343= "white"; if (typeof(TargetDates30343)=="undefined") TargetDates30343 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30343)=="undefined") DisplayFormats30343 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30343)=="undefined") CountActives30343 = true; if (typeof(FinishMessages30343)=="undefined") FinishMessages30343 = ""; if (typeof(CountSteppers30343)!="number") CountSteppers30343 = -1; if (typeof(LeadingZeros30343)=="undefined") LeadingZeros30343 = true; CountSteppers30343 = Math.ceil(CountSteppers30343); if (CountSteppers30343 == 0) CountActives30343 = false; var SetTimeOutPeriods30343 = (Math.abs(CountSteppers30343)-1)*1000 + 990; puti(BackColors30343, ForeColors30343); var dthens30343 = new Date(TargetDates30343); var dnows30343 = new Date("05/05/2024 5:40:37 PM"); if(CountSteppers30343>0) ddiffs30343 = new Date(dnows30343-dthens30343); else ddiffs30343 = new Date(dthens30343-dnows30343); gsecss30343 = Math.floor(ddiffs30343.valueOf()/1000); CountBacks30343(gsecss30343);