// Kundenbetreuung

	var pop = null;
	
	function popdown() {
	  if (pop && !pop.closed) pop.close();
	}
	
	function popup(obj,w,h) {
	  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
	  if (!url) return true;
	  w = (w) ? w += 20 : 150;  // 150px*150px is the default size
	  h = (h) ? h += 25 : 150;
	  var args = 'width='+w+',height='+h+'';
	  popdown();
	  pop = window.open(url,'',args);
	  return (pop) ? false : true;
	}
	
	// window.onunload = popdown;
	// window.onfocus = popdown;


// Schalter
	function schalter(divid) {
		var ele = document.getElementById(divid);
		if(ele.style.display == "block") {
	    		ele.style.display = "none";
	  		}
		else {
			ele.style.display = "block";
			}
		} 

// Topframe
//	if (top.frames.length!=0) {
//		top.location=self.document.location; 
//		}

// Radio alt
	function radio() {
		var ele = document.getElementById("radio");
		if(ele.style.display == "block") {
	    		ele.style.display = "none";
	  		}
		else {
			ele.style.display = "block";
			}
		} 




// JS Suche

var NS4 = (!document.all);
var IE4 = (document.all);
var zaehler = 0;

function suchen(suchtext)
  {
  var txt, i, found;
  if (suchtext == "")
    {
    return false;
    }
  if (NS4)
    {
    if (!this.find(suchtext))
      {
      while(this.find(suchtext, false, true))
      zaehler++;
      }
    else
      {
      zaehler++;
      }
    if (zaehler == 0)
      {
      alert(suchtext + " was not found on this page.");
      }
    }
  if (IE4)
    {
    txt = this.document.body.createTextRange();
    for (i = 0; i <= zaehler && (found = txt.findText(suchtext)) != false; i++)
      {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
      }
    if (found)
      {
      txt.moveStart("character", -1);
      txt.findText(suchtext);
      txt.select();
      txt.scrollIntoView();
      zaehler++;
      }
    else
      {
      if (zaehler > 0)
        {
        zaehler = 0;
        suchen(suchtext);
        }
      else
        {
        alert("Der Text \"" + suchtext + "\" wurde nicht gefunden.");
        }
      }
    }
  return false;
  }
