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 (LeadingZeros30850 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30850(secs) { if (secs < 0) { document.getElementById("cntdwns30850").innerHTML = FinishMessages30850; return; } DisplayStrs30850 = DisplayFormats30850.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30850 = DisplayStrs30850.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30850 = DisplayStrs30850.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30850 = DisplayStrs30850.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30850").innerHTML = DisplayStrs30850; if (CountActives30850) //alert(SetTimeOutPeriods30850); setTimeout("CountBacks30850(" + (secs+CountSteppers30850) + ")", SetTimeOutPeriods30850); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30850)=="undefined") BackColors30850 = ""; if (typeof(ForeColors30850)=="undefined") ForeColors30850= "white"; if (typeof(TargetDates30850)=="undefined") TargetDates30850 = "02/01/2025 9:00:00 PM"; if (typeof(DisplayFormats30850)=="undefined") DisplayFormats30850 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30850)=="undefined") CountActives30850 = true; if (typeof(FinishMessages30850)=="undefined") FinishMessages30850 = ""; if (typeof(CountSteppers30850)!="number") CountSteppers30850 = -1; if (typeof(LeadingZeros30850)=="undefined") LeadingZeros30850 = true; CountSteppers30850 = Math.ceil(CountSteppers30850); if (CountSteppers30850 == 0) CountActives30850 = false; var SetTimeOutPeriods30850 = (Math.abs(CountSteppers30850)-1)*1000 + 990; puti(BackColors30850, ForeColors30850); var dthens30850 = new Date(TargetDates30850); var dnows30850 = new Date("01/31/2025 1:11:58 AM"); if(CountSteppers30850>0) ddiffs30850 = new Date(dnows30850-dthens30850); else ddiffs30850 = new Date(dthens30850-dnows30850); gsecss30850 = Math.floor(ddiffs30850.valueOf()/1000); CountBacks30850(gsecss30850);