window.onload = function() {
    try
    {
    }catch (e)
    {
        //window.alert("Fehler abgefangen: "+e);
    }
}

function goto_url(url) {
    try
    {
        self.location.href=url;
    }
    catch (e)
    {
        /*window.alert("Fehler abgefangen: "+e);*/
    }
}

function showLayer(id) {
    try
    {  
        var all_layers = document.getElementsByTagName ('div');

        for (i = 0; i < all_layers.length; ++i) {
          var the_id = all_layers[i].id;
          if (the_id == id)
              var hit = true;
        }
        if (hit == true){
          for (i = 0; i < all_layers.length; ++i) {
              var the_class = all_layers[i].className;
              if (the_class == null || the_class != 'layer')
                      continue;
              var the_layer = all_layers[i];
              the_layer.style.display = 'none';
          }
          
          var el = document.getElementById (id);
          el.style.display = 'block';
        }
        if (id == 'all'){
          for (i = 0; i < all_layers.length; ++i) {
              var the_class = all_layers[i].className;
              if (the_class == null || the_class != 'layer')
                      continue;
              var the_layer = all_layers[i];
              the_layer.style.display = 'block';
          }
        }
    }
    catch (e)
    {
        window.alert("Fehler abgefangen: "+e);
    }
}


