function checkselector(value) {
    var oldurl = window.location.href;
    var containsid = oldurl.search(/id=/);
    if (value == "en") {
        var newurl = oldurl.replace(/&L=1/,"");
        window.location.href = newurl;
    }

     if (value == "de") {
          if  (containsid == -1) {
               oldurl = oldurl + "?id=1";
          }
          var newurl = oldurl + "&L=1";
          window.location.href = newurl;
    }


}





