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 (LeadingZeros29994 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29994(secs) { if (secs < 0) { document.getElementById("cntdwns29994").innerHTML = FinishMessages29994; return; } DisplayStrs29994 = DisplayFormats29994.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29994 = DisplayStrs29994.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29994 = DisplayStrs29994.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29994 = DisplayStrs29994.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29994").innerHTML = DisplayStrs29994; if (CountActives29994) //alert(SetTimeOutPeriods29994); setTimeout("CountBacks29994(" + (secs+CountSteppers29994) + ")", SetTimeOutPeriods29994); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29994)=="undefined") BackColors29994 = ""; if (typeof(ForeColors29994)=="undefined") ForeColors29994= "white"; if (typeof(TargetDates29994)=="undefined") TargetDates29994 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats29994)=="undefined") DisplayFormats29994 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29994)=="undefined") CountActives29994 = true; if (typeof(FinishMessages29994)=="undefined") FinishMessages29994 = ""; if (typeof(CountSteppers29994)!="number") CountSteppers29994 = -1; if (typeof(LeadingZeros29994)=="undefined") LeadingZeros29994 = true; CountSteppers29994 = Math.ceil(CountSteppers29994); if (CountSteppers29994 == 0) CountActives29994 = false; var SetTimeOutPeriods29994 = (Math.abs(CountSteppers29994)-1)*1000 + 990; puti(BackColors29994, ForeColors29994); var dthens29994 = new Date(TargetDates29994); var dnows29994 = new Date("04/29/2024 5:27:36 PM"); if(CountSteppers29994>0) ddiffs29994 = new Date(dnows29994-dthens29994); else ddiffs29994 = new Date(dthens29994-dnows29994); gsecss29994 = Math.floor(ddiffs29994.valueOf()/1000); CountBacks29994(gsecss29994);