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 (LeadingZeros30938 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30938(secs) { if (secs < 0) { document.getElementById("cntdwns30938").innerHTML = FinishMessages30938; return; } DisplayStrs30938 = DisplayFormats30938.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30938 = DisplayStrs30938.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30938 = DisplayStrs30938.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30938 = DisplayStrs30938.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30938").innerHTML = DisplayStrs30938; if (CountActives30938) //alert(SetTimeOutPeriods30938); setTimeout("CountBacks30938(" + (secs+CountSteppers30938) + ")", SetTimeOutPeriods30938); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30938)=="undefined") BackColors30938 = ""; if (typeof(ForeColors30938)=="undefined") ForeColors30938= "white"; if (typeof(TargetDates30938)=="undefined") TargetDates30938 = "12/23/2024 9:00:00 PM"; if (typeof(DisplayFormats30938)=="undefined") DisplayFormats30938 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30938)=="undefined") CountActives30938 = true; if (typeof(FinishMessages30938)=="undefined") FinishMessages30938 = ""; if (typeof(CountSteppers30938)!="number") CountSteppers30938 = -1; if (typeof(LeadingZeros30938)=="undefined") LeadingZeros30938 = true; CountSteppers30938 = Math.ceil(CountSteppers30938); if (CountSteppers30938 == 0) CountActives30938 = false; var SetTimeOutPeriods30938 = (Math.abs(CountSteppers30938)-1)*1000 + 990; puti(BackColors30938, ForeColors30938); var dthens30938 = new Date(TargetDates30938); var dnows30938 = new Date("03/12/2025 2:43:56 AM"); if(CountSteppers30938>0) ddiffs30938 = new Date(dnows30938-dthens30938); else ddiffs30938 = new Date(dthens30938-dnows30938); gsecss30938 = Math.floor(ddiffs30938.valueOf()/1000); CountBacks30938(gsecss30938);