//-----------



function InsertMail(mailnam,mailsvr,maildom,text)
{
  if(text=="")
    document.write('<a href="mailto:'+mailnam+'@'+mailsvr+'.'+maildom+'" class = "fptextflat10ptgruen">'+mailnam+'@'+mailsvr+'.'+maildom+'</a>');
  else
    document.write('<a href="mailto:'+mailnam+'@'+mailsvr+'.'+maildom+'" class = "fptextflat10ptgruen">'+text+'</a>');
}




function popbild(was) {
window.open(was, "", "scrollbars=yes,width=800,height=600,resizable=yes,toolbar=no,status=no,directories=no,location=no");
}

//-----------

function xshow_layer(x) {

rdloc = Math.floor((Math.random() * 120)) + 120;
//alert(" nn")

if (document.layers) {
//alert(rdloc+"netscape");
document.layers[x].visibility="show";
document.layers[x].top = rdloc;
}

else {

//alert(rdloc + "explorer");
document.all[x].style.visibility="visible";
document.all[x].style.top = rdloc;

document.getElementByid(x).visibility="visible"; //netscape 6

}
}


//---
function show_layer(x) {
rdloc = Math.floor((Math.random() * 120)) + 120; //zufallszahl
	if (document.all) {  //explorer
		document.all[x].style.visibility="visible";
		document.all[x].style.top = rdloc;

	}
	else if (document.layers) {  //netscape 4
  	 document.layers[x].visibility="show";
  	 document.layers[x].top = rdloc;

	}
  else if (document.getElementById) {  // netscape 6 + opera + explorer 5.5
		 elm = document.getElementById(x);
 		elm.style.top = rdloc;
 		elm.style.visibility="visible"; 
  }
  else {
   document.write("kein unterst¸tzer browser!")
			//alert ("keines von 4")
  }
}


//---------
function hide_layer(x){
if (document.all) {  //explorer
		document.all[x].style.visibility="hidden";
	}
	else if (document.layers) {  //netscape 4
  	 document.layers[x].visibility="hide";
	}
  else if (document.getElementById) {  // netscape 6 + opera + explorer 5.5
		 elm = document.getElementById(x);
 		elm.style.visibility="hidden"; 
  }
  else {
   document.write("kein unterstuetzer browser!")
			//alert ("keines von 4")
  }
}


//-----------
function ZweiFrames(URI1,F1,URI2,F2) {
//alert("zeiframes");
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.location.href = URI1;
  Frame2.location.href = URI2;
}


//----------
imglogo = 4
function chooselogo() {
if (document.images) {
thisImg = Math.floor((Math.random() * imglogo)) + 1
document.logorandom.src = "pics/intro0" + thisImg + ".gif"
}
}

//---
function checkbrowser() {
	if (document.all) {  //explorer
		//menu.innerHTML=menucontent
alert ("document.all")
	}
	else if (document.layers) {  //netscape 4
		//document.menu.document.write(menucontent)
	//	document.menu.document.close()
alert ("document.layers")
	}
  else if (document.getElementById) {  //netscape 6 + opera
   // document.getElementById("menu").innerHTML=menucontent
alert ("document.getElementById")
  }
  else {
   // document.write("kein unterst¸tzer browser!")
alert ("keines von 4")
  }
}

