// wStructure_noneframe_de_0_9_5
// erstellt durch Scholl Communications AG, 77694 Kehl, www.scholl.de
// erstellt mit WeblicationŽ Content Management Server, www.weblication.de

function changeLocationNavigation(navId, url, target){
  // document.cookie = "wNavId=" + navId + "; path=/";
  var hasParameters = /\?/;
  if(url != ""){
    if(url == "#"){
      url = document.location.href;
      url = url.replace(/[\&|\?]navid=\d+/i, "");
    }
    if (hasParameters.test(url) == false){
      url = url + '?navId=' + navId;
    }
    else{
      url = url + '&navId=' + navId;        
    }
    if (target != "blank"){
      top.location.href = url;
    }
    else{
      window.open(url);
    }
  }
}
