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 (LeadingZeros30580 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30580(secs) { if (secs < 0) { document.getElementById("cntdwns30580").innerHTML = FinishMessages30580; return; } DisplayStrs30580 = DisplayFormats30580.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30580 = DisplayStrs30580.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30580 = DisplayStrs30580.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30580 = DisplayStrs30580.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30580").innerHTML = DisplayStrs30580; if (CountActives30580) //alert(SetTimeOutPeriods30580); setTimeout("CountBacks30580(" + (secs+CountSteppers30580) + ")", SetTimeOutPeriods30580); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30580)=="undefined") BackColors30580 = ""; if (typeof(ForeColors30580)=="undefined") ForeColors30580= "white"; if (typeof(TargetDates30580)=="undefined") TargetDates30580 = "11/09/2024 9:00:00 PM"; if (typeof(DisplayFormats30580)=="undefined") DisplayFormats30580 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30580)=="undefined") CountActives30580 = true; if (typeof(FinishMessages30580)=="undefined") FinishMessages30580 = ""; if (typeof(CountSteppers30580)!="number") CountSteppers30580 = -1; if (typeof(LeadingZeros30580)=="undefined") LeadingZeros30580 = true; CountSteppers30580 = Math.ceil(CountSteppers30580); if (CountSteppers30580 == 0) CountActives30580 = false; var SetTimeOutPeriods30580 = (Math.abs(CountSteppers30580)-1)*1000 + 990; puti(BackColors30580, ForeColors30580); var dthens30580 = new Date(TargetDates30580); var dnows30580 = new Date("11/07/2024 5:32:17 PM"); if(CountSteppers30580>0) ddiffs30580 = new Date(dnows30580-dthens30580); else ddiffs30580 = new Date(dthens30580-dnows30580); gsecss30580 = Math.floor(ddiffs30580.valueOf()/1000); CountBacks30580(gsecss30580);