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 (LeadingZeros29692 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks29692(secs) { if (secs < 0) { document.getElementById("cntdwns29692").innerHTML = FinishMessages29692; return; } DisplayStrs29692 = DisplayFormats29692.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs29692 = DisplayStrs29692.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs29692 = DisplayStrs29692.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs29692 = DisplayStrs29692.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns29692").innerHTML = DisplayStrs29692; if (CountActives29692) //alert(SetTimeOutPeriods29692); setTimeout("CountBacks29692(" + (secs+CountSteppers29692) + ")", SetTimeOutPeriods29692); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors29692)=="undefined") BackColors29692 = ""; if (typeof(ForeColors29692)=="undefined") ForeColors29692= "white"; if (typeof(TargetDates29692)=="undefined") TargetDates29692 = "03/30/2024 10:00:00 PM"; if (typeof(DisplayFormats29692)=="undefined") DisplayFormats29692 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives29692)=="undefined") CountActives29692 = true; if (typeof(FinishMessages29692)=="undefined") FinishMessages29692 = ""; if (typeof(CountSteppers29692)!="number") CountSteppers29692 = -1; if (typeof(LeadingZeros29692)=="undefined") LeadingZeros29692 = true; CountSteppers29692 = Math.ceil(CountSteppers29692); if (CountSteppers29692 == 0) CountActives29692 = false; var SetTimeOutPeriods29692 = (Math.abs(CountSteppers29692)-1)*1000 + 990; puti(BackColors29692, ForeColors29692); var dthens29692 = new Date(TargetDates29692); var dnows29692 = new Date("04/29/2024 2:26:06 AM"); if(CountSteppers29692>0) ddiffs29692 = new Date(dnows29692-dthens29692); else ddiffs29692 = new Date(dthens29692-dnows29692); gsecss29692 = Math.floor(ddiffs29692.valueOf()/1000); CountBacks29692(gsecss29692);