function showLayer(LayerName)
{
  setVisibility(LayerName,'block');
}

function hideLayer(LayerName)
{
  setVisibility(LayerName,'none');
}
function setVisibility(LayerName,Wert) {
  if(document.all || document.layers || document.getElementById) {
    var obj=document.all ? document.all[LayerName].style : document.layers ? document[LayerName] : document.getElementById(LayerName).style;
    obj.display = Wert;
  }
}
function setLink(){
  var docli = document.links;
  var sep = "?";
  for(var i = 0; i < docli.length; i++){
    if(docli[i].className.search(/nf_change_link+/) != -1){
      if (docli[i].href.search(/\?+/) != -1){
        sep = "&";
      }
      else{
        sep = "?";
      }
      docli[i].href = docli[i].href + sep + "filter_in=1";
    }
  }
}
function unsetLink(){
  var docli = document.links;
  for(var i = 0; i < docli.length; i++){
    if(docli[i].className.search(/nf_change_link+/) != -1){
      docli[i].href = docli[i].href.replace(/&filter_in=1/, "");
      docli[i].href = docli[i].href.replace(/\?filter_in=1/, "");
    }
  }
}
function setLink2(){
  var docli = document.links;
  var sep = "?";
  for(var i = 0; i < docli.length; i++){
    if(docli[i].className.search(/nf_change_link2+/) != -1){
      if (docli[i].href.search(/\?+/) != -1){
        sep = "&";
      }
      else{
        sep = "?";
      }
      docli[i].href = docli[i].href + sep + "filter_in2=1";
    }
  }
}
function unsetLink2(){
  var docli = document.links;
  for(var i = 0; i < docli.length; i++){
    if(docli[i].className.search(/nf_change_link2+/) != -1){
      docli[i].href = docli[i].href.replace(/&filter_in2=1/, "");
      docli[i].href = docli[i].href.replace(/\?filter_in2=1/, "");
    }
  }
}
