<!--
  
  
function SetStatistic(webroot,session, mandant_id)
{
var tmp = webroot + "statistic_0.php" + session + "&mandant_id=" + mandant_id + "&";
if(document.referrer) tmp += "REFFERER=" + urlencode(document.referrer) + "&";

tmp += "INFO=";
tmp += navigator.javaEnabled() + "|"; //Java vorhanden?
tmp += navigator.cookieEnabled + "|"; //Cookie erlaubt?
tmp += screen.width+"*"+screen.height + "|"; //Auflösung


if(document.body.offsetHeight)
{
  tmp += document.body.offsetWidth + "*" + document.body.offsetHeight + "|";  //sichtbare breite + höhe
}
else tmp += window.innerWidth + "*" + window.innerHeight + "|";  //sichtbare breite + höhe



tmp += screen.pixelDepth;             //Farbtiefe in Bit
//installierte plugins
tmp += "&PLUGINS=";
for (var i = 0; i < navigator.plugins.length; i++) {
  if(i+1       < navigator.plugins.length &&
     navigator.plugins[i].name != navigator.plugins[i+1].name &&
     navigator.plugins[i].description != "Default Plug-in")
  {
     tmp += navigator.plugins[i].name + "|" + navigator.plugins[i].description + "<|>";
  }
}

//unterstützte mime
var JavaApplet = "";
var JavaBeans  = "";
tmp += "&MIME=";
for (var i = 0; i < navigator.mimeTypes.length; i++)
{
  if(navigator.mimeTypes[i].description != "Java Applet" &&
     navigator.mimeTypes[i].description != "JavaBeans" &&
     navigator.mimeTypes[i].description != "Network Interface Plugin" &&
     navigator.mimeTypes[i].type        != "*")
  {
    tmp += navigator.mimeTypes[i].type + "<|>";
  }
}


StatisticImage      = new Image(1, 1);
StatisticImage .src = tmp;
}


function urlencode(txt)
{
  txt = replaceIt(txt, "&", "%26");
  txt = replaceIt(txt, "ü", "%FC");
  txt = replaceIt(txt, "Ü", "%DC");
  txt = replaceIt(txt, "ä", "%E4");
  txt = replaceIt(txt, "Ä", "%C4");
  txt = replaceIt(txt, "ö", "%F6");
  txt = replaceIt(txt, "Ö", "%D6");
  txt = replaceIt(txt, "ß", "%DF");

  return txt;
}

function replaceIt(string,suchen,ersetzen)
{
  ausgabe = "" + string;
  while (ausgabe.indexOf(suchen)>-1)
  {
    pos= ausgabe.indexOf(suchen);
    ausgabe = "" + (ausgabe.substring(0, pos) + ersetzen +
    ausgabe.substring((pos + suchen.length), ausgabe.length));
  }

  return ausgabe;
}
//-->

