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 (LeadingZeros30563 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30563(secs) { if (secs < 0) { document.getElementById("cntdwns30563").innerHTML = FinishMessages30563; return; } DisplayStrs30563 = DisplayFormats30563.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30563 = DisplayStrs30563.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30563 = DisplayStrs30563.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30563 = DisplayStrs30563.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30563").innerHTML = DisplayStrs30563; if (CountActives30563) //alert(SetTimeOutPeriods30563); setTimeout("CountBacks30563(" + (secs+CountSteppers30563) + ")", SetTimeOutPeriods30563); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30563)=="undefined") BackColors30563 = ""; if (typeof(ForeColors30563)=="undefined") ForeColors30563= "white"; if (typeof(TargetDates30563)=="undefined") TargetDates30563 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30563)=="undefined") DisplayFormats30563 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30563)=="undefined") CountActives30563 = true; if (typeof(FinishMessages30563)=="undefined") FinishMessages30563 = ""; if (typeof(CountSteppers30563)!="number") CountSteppers30563 = -1; if (typeof(LeadingZeros30563)=="undefined") LeadingZeros30563 = true; CountSteppers30563 = Math.ceil(CountSteppers30563); if (CountSteppers30563 == 0) CountActives30563 = false; var SetTimeOutPeriods30563 = (Math.abs(CountSteppers30563)-1)*1000 + 990; puti(BackColors30563, ForeColors30563); var dthens30563 = new Date(TargetDates30563); var dnows30563 = new Date("09/08/2024 3:45:51 AM"); if(CountSteppers30563>0) ddiffs30563 = new Date(dnows30563-dthens30563); else ddiffs30563 = new Date(dthens30563-dnows30563); gsecss30563 = Math.floor(ddiffs30563.valueOf()/1000); CountBacks30563(gsecss30563);