/* Texthide */

function texthide_helper1(a,b){var c=a,d="",e;for(e=0;e<b;e++)d+="0";e--;while(e>=0){if(c%2==1){d=d.slice(0,e)+"1"+d.slice(e+1);c-=1}c/=2;e--}return d}
function texthide_helper2(a){var b=0,c,d=1;for(c=a.length-1;c>=0;c--){switch(a.charAt(c)){case "1":b+=d;break;case "0":break;default:b=-1;d=0;break}d*=2}return b}
var texthide_data1=unescape("=%3Een =t%3Coa%22rlids0u/pcbh%0A;mgf&%0D1.6WI53MBDS74z%25kFKy2#Av-wT:9,CxE_%7C"),texthide_data2="YfseobznEP71X6plQUOB_0hZ8xyGNW4dJFADtLgrS5qiCk2-IKaRucwm3MTjv9HV";
function texthide_decrypt(a){var b="",c,d,e="";for(c=0;c<a.length;c++){b+=texthide_helper1(texthide_data2.indexOf(a.charAt(c)),6);d=0;if(b.length>12)d=1;if(c>=a.length-1)d=2;while((d>0)&&(b.length>4)){if(b.charAt(0)=="1"){if((b.slice(1,5)=="0101")&&(b.length>12)){e+=String.fromCharCode(texthide_helper2(b.slice(5,13)));b=b.slice(13)}
else{if(b!="10101")e+=texthide_data1.charAt(texthide_helper2(b.slice(1,5)));b=b.slice(5)}}
else if(b.charAt(1)=="1"){e+=texthide_data1.charAt(texthide_helper2(b.slice(2,6))+16);b=b.slice(6)}
else{e+=texthide_data1.charAt(texthide_helper2(b.slice(2,7))+32);b=b.slice(7)}if(d<2)if(b.length<13)d=0}}return e}
function texthide_show(a){document.write(texthide_decrypt(a))}

/*E-Mail-Test*/

function isEmail(a){var b=a.indexOf("@"),c,d;if(b<1)return false;c=a.slice(b+1);d=c.indexOf(".");if(d<1)return false;if(d>=(c.length-2))return false;return true}

/* Frameclear */

function frameClear(b,c,a)
{
 var e=checkFrames(),f,g="",i="",j=false,k="",l="";
 for(f=0;f<b;f++)g+="../";
 if(e)
 {
  if(top.location.search!="")
  {
   i=document.location.search.slice(1).split("&");
   for(f=0;f<i.length;f++)if(i[f]=="contentCheck=yes")j=true;
   h=top.location.search.slice(1).split("&");
   if(j)for(f=0;f<h.length;f++)
   {
    h[f]=h[f].split("=");
    if(h[f][0]=="contentMgr")if(h[f].length==2)if(a!=h[f][1])k=g+h[f][1];
   }
  }
  if(k=="")if(c!="")top.menue.location.replace(g+"verwaltung/menue.htm?"+c);
  if(k!="")location.replace(k);
 }
 if(!e)top.location.replace(g+"index.htm"+((a=="")?(""):("?contentMgr="+a)));
}

function checkFrames()
{
 var frames_correct=true;
 if(frames_correct)if(top.frames.length!=8)frames_correct=false;
 if(frames_correct)if(top.frames[0].name!="obenlinks")frames_correct=false;
 if(frames_correct)if(top.frames[1].name!="mittelinks")frames_correct=false;
 if(frames_correct)if(top.frames[2].name!="menue")frames_correct=false;
 if(frames_correct)if(top.frames[3].name!="orgmenu")frames_correct=false;
 if(frames_correct)if(top.frames[4].name!="copy")frames_correct=false;
 if(frames_correct)if(top.frames[5].name!="obenrechts")frames_correct=false;
 if(frames_correct)if(top.frames[6].name!="inhalt")frames_correct=false;
 if(frames_correct)if(top.frames[7].name!="banner")frames_correct=false;
 return frames_correct;
}

/* DHTML */

var DHTML=false,DOM=false,MSIE4=false,NS4=false,OP=false;
if(document.getElementById){DHTML=true;DOM=true;}
else
{
 if(document.all){DHTML=true;MSIE4=true;}
 else{if(document.layers){DHTML=true;NS4=true;}}
}
if(window.opera)OP=true;

function getElement (Mode, Identifier, ElementNumber) {
  var Element, ElementList;
  if (DOM) {
    if (Mode.toLowerCase() == "id") {
      Element = document.getElementById(Identifier);
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "name") {
      ElementList = document.getElementsByName(Identifier);
      Element = ElementList[ElementNumber];
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      ElementList = document.getElementsByTagName(Identifier);
      Element = ElementList[ElementNumber];
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  if (MSIE4) {
    if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
      Element = document.all(Identifier);
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      ElementList = document.all.tags(Identifier);
      Element = ElementList[ElementNumber];
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  if (NS4) {
    if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
      Element = document[Identifier];
      if (!Element) {
        Element = document.anchors[Identifier];
      }
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "layerindex") {
      Element = document.layers[Identifier];
      if (!Element) {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  return false;
}

function getAttribute (Mode, Identifier, ElementNumber, AttributeName) {
  var Attribute;
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM || MSIE4) {
    Attribute = Element.getAttribute(AttributeName);
    return Attribute;
  }
  if (NS4) {
    Attribute = Element[AttributeName]
    if (!Attribute) {
       Attribute = false;
    }
    return Attribute;
  }
  return false;
}

function getContent (Mode, Identifier, ElementNumber) {
  var Content;
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM && Element.firstChild) {
    if (Element.firstChild.nodeType == 3) {
      Content = Element.firstChild.nodeValue;
    } else {
      Content = "";
    }
    return Content;
  }
  if (MSIE4) {
    Content = Element.innerText;
    return Content;
  }
  return false;
}

function setContent (Mode, Identifier, ElementNumber, Text) {
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM && Element.firstChild) {
    Element.firstChild.nodeValue = Text;
    return true;
  }
  if (MSIE4) {
    Element.innerText = Text;
    return true;
  }
  if (NS4) {
    Element.document.open();
    Element.document.write(Text);
    Element.document.close();
    return true;
  }
}