/* DHTML-Bibliothek */

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;
  if (DOM) {
    if (Mode.toLowerCase() == "id") {
      if (typeof document.getElementById(Identifier) == "object") {
        Element = document.getElementById(Identifier);
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "name") {
      var ElementList = document.getElementsByName(Identifier);
      if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) {
        Element = ElementList[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      var ElementList = document.getElementsByTagName(Identifier);
      if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) {
        Element = ElementList[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    return null;
  }
  if (MSIE4) {
    if (Mode.toLowerCase() == "id") {
      if (typeof document.all[Identifier] == "object") {
        Element = document.all[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      if (typeof document.all.tags(Identifier) == "object") {
        Element = document.all.tags(Identifier)[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "name") {
      if (typeof document[Identifier] == "object") {
        Element = document[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  if (NS4) {
    if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
      if (typeof document[Identifier] == "object") {
        Element = document[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "index") {
      if (typeof document.layers[Identifier] == "object") {
        Element = document.layers[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  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 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) {
    if (typeof Element[ElementNumber] == "object") {
      Attribute = Element[ElementNumber][AttributeName];
    } else {
      Attribute = Element[AttributeName]
    }
    return Attribute;
  }
  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;
  } 
}

/* Ende DHTML-Bibliothek --------------------------------------------------  */


function ChangeNavi()
{
if (navigator.userAgent.indexOf("Gecko") == -1)
{
document.location.replace('cquick.htm#a1');
}
if (navigator.userAgent.indexOf("Gecko") >= 0)
{
document.location.href = "cquick.htm#a1";
}
}

function TogIMG()
{
Clpic = "faces/clear.gif";
document.bild1.src = Clpic;
document.bild2.src = Clpic;
document.bild3.src = Clpic;
document.bigImage.src = Clpic;
document.inNews.src = Clpic;
}



function chkFormular()
{
 if(document.Form2Mail.name.value == "")  {
   alert("Bitte Ihren Namen angeben!");
   document.Form2Mail.name.focus();
   return false;
  }
 if(document.Form2Mail.fon.value == "") {
   alert("Bitte Ihre Telefonnummer angeben!");
   document.Form2Mail.fon.focus();
   return false;
  }
 if(document.Form2Mail.mail.value == "") {
   alert("Bitte Ihre E-Mail-Adresse angeben!");
   document.Form2Mail.mail.focus();
   return false;
  }
 if(document.Form2Mail.mail.value.indexOf('@') == -1) {
   alert("Keine E-Mail-Adresse!");
   document.Form2Mail.mail.focus();
   return false;
  }
else document.Form2Mail.elements[7].click();
}


function clearClient2()
{
if((top.frames.length > 1) && (!NS4))
{ 
var wenFinden = parent.head.document.getElementById("string").value;
parent.mid.document.getElementById("cNews");
monat = cNews.ClientName;
}
if((monat) && (monat.indexOf("Quoten und Zahlen") < 0) && (wenFinden) && (DOM || DHTML) && (wenFinden.indexOf("z057ztzurdfhy") != 0))
{
cNews.focus();
}
}

function NewsFinden2()
{
if(top.frames.length > 1)
{
document.getElementById("cNews");
monat = cNews.ClientName;
wenFinden = parent.head.document.getElementById("string").value;
LinkFinden = cNews.document.getElementsByTagName("a")[wenFinden];
MonatFinden = parent.mid.document.getElementsByTagName("a")[monat];
for (var i = 0; i < parent.mid.document.links.length; ++i) document.links[i].style.backgroundColor = "#F3F5F8";
for (var n = 0; n < parent.mid.document.links.length; ++n) document.links[n].style.color = "#006699";
for (var j = 0; j < parent.mid.document.links.length; ++j) document.links[j].style.fontWeight = "normal";
}
if((monat) && (LinkFinden) && (wenFinden.indexOf("z057ztzurdfhy") < 0))
{
MonatFinden.style.backgroundColor = "#006699";
MonatFinden.style.color = "#ffffff";
MonatFinden.style.fontWeight = "bold";
cNews.location.href = cNews.document.URL + '#' + wenFinden;
//cNews.focus();
LinkFinden.style.backgroundColor = "#006699";
LinkFinden.style.color = "#ffffff";
}
else 
{
MonatFinden.style.backgroundColor = "#ffffff";
MonatFinden.style.color = "#006699";
MonatFinden.style.fontWeight = "bold";
clearClient2();
}
}

function NewsFinden1()
{
if(top.frames.length > 1)
{
document.getElementById("cNews");
monat = cNews.ClientName;
wenFinden = parent.head.document.getElementById("string").value;
LinkFinden = cNews.document.getElementsByTagName("a")[wenFinden];
}
if((monat) && (LinkFinden) && (wenFinden.indexOf("z057ztzurdfhy") < 0))
{
cNews.location.href = cNews.document.URL + '#' + wenFinden;
//cNews.focus();
LinkFinden.style.backgroundColor = "#006699";
LinkFinden.style.color = "#ffffff";
}
}

function newsCheck()
{
if((top.frames.length > 0) && (DHTML || DOM))
{
window.setTimeout("NewsFinden2()", 3000);
}
}


shWin="";

function shStart()
{
shWin = window.open('aufschlag/index.htm','popupA','width=790,height=560,toolbar=no,directories=no,menubar=no,scrollbars=yes,scrolling=yes,status=yes,location=no,resizable=yes,left=0,top=0');
if(shWin){shWin.focus();}
}