function linkchecker(url) {
  var curl = replaceChars(url,"&","kaufmund");
  curl = replaceChars(url,"+","EinPlus");
  var _location = replaceChars(window.location.href,"#","");
  var cUrl = "http://www.modellskipper.de/linkcheck.php?location=" + _location + "&link=" + curl;
  var cWindow = window.open(cUrl);
  if (!cWindow.opener) cWindow.opener = self;
  if (cWindow.focus != null) cWindow.focus();
}

function replaceChars(text,suche,ersetze) {
  out = suche;
  add = ersetze;
  temp = text;
  while (temp.indexOf(out)>-1) {
    pos= temp.indexOf(out);
    temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
  }
  return temp;
}

