function filter(sClass)

    {
        var divs = document.getElementsByTagName("div");
        var Quicklinks = document.getElementById("quicklinks");
        var yearsections = new Array;
        var j=0;
        for (var i=1999; i<2015;i++)
        {
          if (document.getElementById('y'+i)!=null)
            {
            yearsections[j]=document.getElementById('y'+i)
            j++;
            }
        }

 if (sClass=='all')
 {       
           Quicklinks.style.display = "block";
         for (var i=0; i<yearsections.length;i++)
         {
         yearsections[i].style.display="block";
          } 
} else

{
           Quicklinks.style.display = "none";

     for (var i=0; i<yearsections.length;i++)
         {
          yearsections[i].style.display="none";
          if (yearsections[i].id==sClass)
             { 
             yearsections[i].style.display="block";          
             }
          }



}        

 
    }
    
    
   function MakeTrackLinks()
   { 
    var Links = document.links
 for (var i = 0;i < Links.length;i++) 
  {
  if ((Links[i].href.indexOf(".plt") != -1 || Links[i].href.indexOf(".PLT") != -1 ))
  {
  Links[i].href = "track-download.html?"+ Links[i].href
  var LinkTR = Links[i].parentNode;
  while (LinkTR.tagName.toUpperCase()!='TR')
      {LinkTR=LinkTR.parentNode};  
  var TDs=LinkTR.getElementsByTagName('td');
  var TrackRoute = TDs[1].innerHTML;
  Links[i].href+='?'+escape(TrackRoute); 
  Links[i].href+='?'+TDs[3].innerHTML;
  }
  }
  }