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 (LeadingZeros29895 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29895(secs) { if (secs < 0) { document.getElementById("cntdwns29895").innerHTML = FinishMessages29895; return; } DisplayStrs29895 = DisplayFormats29895.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29895 = DisplayStrs29895.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29895 = DisplayStrs29895.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29895 = DisplayStrs29895.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29895").innerHTML = DisplayStrs29895; if (CountActives29895) //alert(SetTimeOutPeriods29895); setTimeout("CountBacks29895(" + (secs+CountSteppers29895) + ")", SetTimeOutPeriods29895); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29895)=="undefined") BackColors29895 = ""; if (typeof(ForeColors29895)=="undefined") ForeColors29895= "white"; if (typeof(TargetDates29895)=="undefined") TargetDates29895 = "04/26/2024 11:00:00 PM"; if (typeof(DisplayFormats29895)=="undefined") DisplayFormats29895 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29895)=="undefined") CountActives29895 = true; if (typeof(FinishMessages29895)=="undefined") FinishMessages29895 = ""; if (typeof(CountSteppers29895)!="number") CountSteppers29895 = -1; if (typeof(LeadingZeros29895)=="undefined") LeadingZeros29895 = true; CountSteppers29895 = Math.ceil(CountSteppers29895); if (CountSteppers29895 == 0) CountActives29895 = false; var SetTimeOutPeriods29895 = (Math.abs(CountSteppers29895)-1)*1000 + 990; puti(BackColors29895, ForeColors29895); var dthens29895 = new Date(TargetDates29895); var dnows29895 = new Date("05/06/2024 4:30:34 AM"); if(CountSteppers29895>0) ddiffs29895 = new Date(dnows29895-dthens29895); else ddiffs29895 = new Date(dthens29895-dnows29895); gsecss29895 = Math.floor(ddiffs29895.valueOf()/1000); CountBacks29895(gsecss29895);