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 (LeadingZeros29752 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29752(secs) { if (secs < 0) { document.getElementById("cntdwns29752").innerHTML = FinishMessages29752; return; } DisplayStrs29752 = DisplayFormats29752.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29752 = DisplayStrs29752.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29752 = DisplayStrs29752.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29752 = DisplayStrs29752.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29752").innerHTML = DisplayStrs29752; if (CountActives29752) //alert(SetTimeOutPeriods29752); setTimeout("CountBacks29752(" + (secs+CountSteppers29752) + ")", SetTimeOutPeriods29752); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29752)=="undefined") BackColors29752 = ""; if (typeof(ForeColors29752)=="undefined") ForeColors29752= "white"; if (typeof(TargetDates29752)=="undefined") TargetDates29752 = "04/28/2024 11:00:00 PM"; if (typeof(DisplayFormats29752)=="undefined") DisplayFormats29752 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29752)=="undefined") CountActives29752 = true; if (typeof(FinishMessages29752)=="undefined") FinishMessages29752 = ""; if (typeof(CountSteppers29752)!="number") CountSteppers29752 = -1; if (typeof(LeadingZeros29752)=="undefined") LeadingZeros29752 = true; CountSteppers29752 = Math.ceil(CountSteppers29752); if (CountSteppers29752 == 0) CountActives29752 = false; var SetTimeOutPeriods29752 = (Math.abs(CountSteppers29752)-1)*1000 + 990; puti(BackColors29752, ForeColors29752); var dthens29752 = new Date(TargetDates29752); var dnows29752 = new Date("05/04/2024 8:09:33 AM"); if(CountSteppers29752>0) ddiffs29752 = new Date(dnows29752-dthens29752); else ddiffs29752 = new Date(dthens29752-dnows29752); gsecss29752 = Math.floor(ddiffs29752.valueOf()/1000); CountBacks29752(gsecss29752);