/*Browsercheck object*/
function cm_bwcheck(){
	//In theory we should use object detection, but this script needs work-arounds for almost every browser...
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck();

function doSubmitThis()
{
	var sName=top.frames[3].document.forms[0].elements["name"].value;
	var sGName=top.frames[3].document.forms[0].elements["givenname"].value;
	var sMail=top.frames[3].document.forms[0].elements["email"].value;
	var sComment=top.frames[3].document.forms[0].elements["comment"].value;
	
	if (sName=="" || sGName=="" || sMail=="" || sComment=="")
	{
		alert("Bitte füllen Sie sämtliche Eingabefelder aus, um eine Beantwortung Ihrer Anfrage zu ermöglichen!");
	}
	else
	{

		top.frames[3].frames[0].document.forms[0].elements["name"].value=sName;
		top.frames[3].frames[0].document.forms[0].elements["givenname"].value=sGName;
		top.frames[3].frames[0].document.forms[0].elements["email"].value=sMail;
		top.frames[3].frames[0].document.forms[0].elements["comment"].value=sComment;
		top.frames[3].frames[0].document.forms[0].elements["key"].value=top.frames[3].document.forms[0].elements["key"].value;
		top.frames[3].frames[0].document.forms[0].submit();
		top.frames[3].location.replace("cont2a.htm");
	}
}

function drawNav(sText)
{
	sPrint="<B><FONT size=\"2\"><table width=\"100%\" height=\"32\" border=\"0\" style=\"margin-top:10; margin-bottom:10;border:1px solid black\"><tr><td><table>";

	var vText=sText.split("~");
	for (x=0; x<vText.length; x++)
	{
		sURL="#";
		sText=vText[x];
		if (x<vText.length-1)
		{
			if (vText[x].indexOf("|")!=-1) 
			{
				vLink=vText[x].split("|");
				sURL=vLink[1];
				sText=vLink[0];
			}
		}
		sMyText="<td valign=\"middle\" width=\"25\">"+(sURL!="#"?"<a class=\"al\" href=\""+sURL+"\" target=\"contents\">":"")+"<IMG alt=\"Top Icon\" width=\"22\" height=\"22\" border=\"0\" src=\"../graphics/st08mini.gif\">"+(sURL!="#"?"</a>":"")+"</td>";
		sMyText+="<td valign=\"middle\" width=\"\1\">"+(sURL!="#"?"<a class=\"al\" href=\""+sURL+"\" target=\"contents\">":"")+sText+(sURL!="#"?"</a>":"")+"</td>";
		sPrint +=sMyText;
	}
	sPrint+="</tr></table><td></td></tr></table></FONT></B>";
	if (!bw.ns4) top.header.document.getElementById("nav").innerHTML=sPrint;
}


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Patrick Lewis (gtrwiz@aol.com) -->
<!-- Web Site:  http://www.patricklewis.net -->
<!-- Begin
//  #########  CREATES POP UP BOXES 
function popLayer(myText){
if(!bw.ie)
{
	if (bw.moz) {pad="0"; bord="1 bordercolor=black";}
	else {pad="1"; bord="0";}
	desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=000000><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=ffffdd><center><font size=-1>\n"
	+myText
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
	if(bw.ns4) {
		document.object1.document.write(desc);
		document.object1.document.close();
		document.object1.left=x+15;
		document.object1.top=y-5;
	}
	else if(bw.moz || bw.op){
		document.getElementById("object1").innerHTML=desc;
		document.getElementById("object1").style.left=x+15;
		document.getElementById("object1").style.top=y-5;
	}
}
}
function hideLayer(){
if (!bw.ie)
{
	if(bw.ns4) {eval(document.object1.top="-500");}
	else if(bw.moz || bw.op) {document.getElementById("object1").style.top="-500";}
}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
//  End -->
