function initGlossary(){
	if (document.getElementsByTagName)
		var x = document.getElementsByTagName('A');
	else if (document.all)
		var x = document.all.tags('A');
	else return;

	for (var i=0;i<x.length;i++){
		if(x[i].className=='glossar') { x[i].onclick = glossaryWrapper ; }	
	}
}
function glossaryWrapper(){
	return popGlossary(this.href);
}

function popGlossary(URL){
	var breite=450;
	var hoehe=450;
	
	var top=(screen.availHeight-hoehe)/2;
	var left=(screen.availWidth-breite)/2;
	var args = "height="+hoehe+", width="+breite+",menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,left="+left+",top="+top;
	popGlossarywin=window.open(URL,'popGlossaryname',args);
	popGlossarywin.focus();
	return false;
}

function poptext(URL, breite, hoehe)
{
	if (!breite){var breite=450;}
	if (!hoehe)	{var hoehe=450;}
	
	var top=(screen.availHeight-hoehe)/2;
	var left=(screen.availWidth-breite)/2;
	var args = "height="+hoehe+", width="+breite+",menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,left="+left+",top="+top;
	poptextwin=window.open(URL,'poptextname',args);
	poptextwin.focus();
}     

function verified_contact(){
   var missing_data="";

  if (mailified(document.tmpname.email.value) == false) missing_data=missing_data+"E-Mail Adresse\n";

    if (missing_data==""){
        return true;
    }else{
        alert("Folgende Daten müssen angegeben werden:\n\n"+missing_data);
        return false;
    }
}

//verifiziert das Kontaktformular ENGLISH
function verified_contact_en(){
  var missing_data="";

  if (mailified(document.tmpname.email.value) == false) missing_data=missing_data+"E-Mail Adress\n";

    if (missing_data==""){
        return true;
    }else{
        alert("The following data has to be specified:\n\n"+missing_data);
        return false;
    }
}


function mailified(adresse){
  Suche = /..+@..+\...+/;
  Ergebnis = Suche.test(adresse);
  if (Ergebnis == true){return true;}else {return false;}
}

function printFuncDe(){
  if(self.print && (navigator.userAgent.indexOf("Mac") == -1)) {
    window.print();
  }//if(self.print) {
  else{
    alert("Ihr Browser unterstützt kein Aufrufen der automatischen Druckfunktion.\n Bitte wählen sie \"drucken\" aus dem Menü");
  }
}//function printFunc(){

function printFuncEn(){
  if(self.print && (navigator.userAgent.indexOf("Mac") == -1)) {
    window.print();
  }//if(self.print) {
  else{
    alert("Please use your browsers print-function.");
  }
}//function printFunc(){

