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 (LeadingZeros29683 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29683(secs) { if (secs < 0) { document.getElementById("cntdwns29683").innerHTML = FinishMessages29683; return; } DisplayStrs29683 = DisplayFormats29683.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29683 = DisplayStrs29683.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29683 = DisplayStrs29683.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29683 = DisplayStrs29683.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29683").innerHTML = DisplayStrs29683; if (CountActives29683) //alert(SetTimeOutPeriods29683); setTimeout("CountBacks29683(" + (secs+CountSteppers29683) + ")", SetTimeOutPeriods29683); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29683)=="undefined") BackColors29683 = ""; if (typeof(ForeColors29683)=="undefined") ForeColors29683= "white"; if (typeof(TargetDates29683)=="undefined") TargetDates29683 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats29683)=="undefined") DisplayFormats29683 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29683)=="undefined") CountActives29683 = true; if (typeof(FinishMessages29683)=="undefined") FinishMessages29683 = ""; if (typeof(CountSteppers29683)!="number") CountSteppers29683 = -1; if (typeof(LeadingZeros29683)=="undefined") LeadingZeros29683 = true; CountSteppers29683 = Math.ceil(CountSteppers29683); if (CountSteppers29683 == 0) CountActives29683 = false; var SetTimeOutPeriods29683 = (Math.abs(CountSteppers29683)-1)*1000 + 990; puti(BackColors29683, ForeColors29683); var dthens29683 = new Date(TargetDates29683); var dnows29683 = new Date("04/28/2024 11:16:28 PM"); if(CountSteppers29683>0) ddiffs29683 = new Date(dnows29683-dthens29683); else ddiffs29683 = new Date(dthens29683-dnows29683); gsecss29683 = Math.floor(ddiffs29683.valueOf()/1000); CountBacks29683(gsecss29683);