function ExterneSeite(wasdenn)
{
	wi = window.open(wasdenn,"","width=1000,height=800,screenX=0,screenY=0,resizable=yes,scrollbars=auto");
	wi.focus();
}
function Gutachten(wasdenn)
{
	wi = window.open(wasdenn,"Gutachten","width=800,height=600,screenX=0,screenY=0,resizable=no,scrollbars=no");
	wi.focus();
}
function OpenInfo(wasdenn)
{
	wi = window.open(wasdenn,"Info","width=800,height=600,screenX=0,screenY=0,resizable=no,scrollbars=no");
	wi.focus();
}
function Drucken(wasdenn)
{
	wi = window.open(wasdenn,"Druck","width=640,height=800,screenX=0,screenY=0,resizable=no,scrollbars=no");
	wi.focus();
}
function COCDrucken(wasdenn)
{
	wi = window.open(wasdenn,"Druck","width=900,height=600,screenX=0,screenY=0,resizable=yes,scrollbars=yes");
	wi.focus();
}
function EmailFenster(wasdenn)
{
	wi = window.open(wasdenn,"Email","width=400,height=300,screenX=0,screenY=0,resizable=no,scrollbars=no");
	wi.focus();
}
function druckmich()
{
	window.print();
	window.close();
}

function Grossbild()
{
	query = self.location.search;
	query = query.substr(1);
	
	var alles = "";
	alles = alles + "<table width=100%>" + '\n';
	alles = alles + "<tr>" + '\n';
	alles = alles + "	<td align=\"center\"><a href=\"javascript:window.close();\"><img src=\"" + query  + "\" width=500 height=375 border=0 alt=\"\"></a></td>" + '\n';
	alles = alles + "</tr>" + '\n';
	alles = alles + "<tr>" + '\n';
	alles = alles + "	<td align=\"center\"><p class=gross>Zum Schliessen des Fensters bitte in das Bild klicken.</p></td>" + '\n';
	alles = alles + "</tr>" + '\n';
	alles = alles + "</table>" + '\n';

	document.write(alles);
}
function zeigGrossbild(bild)
{
	var aufruf = "Grossbild.html?" + bild
	open(aufruf,"Bild","width=520,height=420,screenX=0,screenY=0,resizable=no,scrollbars=no");
}



var timeobj
var topmenu
function ZeigenVerstecken(wert, defaultclass)
{
	if (document.getElementById && document.getElementById(wert)) {
		div_id = document.getElementById(wert);
		status = true;
	}
	else if (document.all && document.all[ wert ]) {
		div_id = document.all[ wert ];
		status = true;
	}
	else if (document.layers && document.layers[ wert ]) {
		div_id = document.layers[ wert ];
		status = true;
	}
	else {
		status = false;
	}
	if (status) {
		div_id.className = (div_id.className == 'hidediv' ? defaultclass : 'hidediv');
	}
}

function Zeigen(wert, defaultclass)
{
	if (document.getElementById && document.getElementById(wert)) {
		div_id = document.getElementById(wert);
		status = true;
	}
	else if (document.all && document.all[ wert ]) {
		div_id = document.all[ wert ];
		status = true;
	}
	else if (document.layers && document.layers[ wert ]) {
		div_id = document.layers[ wert ];
		status = true;
	}
	else {
		status = false;
	}
	if (status) {
		topmenu = wert;
		window.timeobj = window.setTimeout('Verstecken("' + wert + '");', 4000);
		div_id.className = defaultclass;
	}
}

function Verstecken(wert)
{
	if (document.getElementById && document.getElementById(wert)) {
		div_id = document.getElementById(wert);
		status = true;
	}
	else if (document.all && document.all[ wert ]) {
		div_id = document.all[ wert ];
		status = true;
	}
	else if (document.layers && document.layers[ wert ]) {
		div_id = document.layers[ wert ];
		status = true;
	}
	else {
		status = false;
	}
	if (status) {
		window.clearTimeout(window.timeobj);
		div_id.className = 'hidediv';
	}
}

function m_over(idname)
{
	if (window.topmenu) {
		window.clearTimeout(window.timeobj);
		window.timeobj = window.setTimeout('Verstecken("' + window.topmenu + '");', 4000);
	}
	idname.style.background='#CCCCCC';
}
function m_over2(idname)
{
	idname.style.background='#EEEEEE';
}
function m_out(idname)
{
	idname.style.background='#DDDDDD';
}

function ClickMe(myButton)
{
	bt = document.all[myButton];
	alert(bt);
	bt.click();
}
function ClickMex(myButton)
{
	document.all[myButton].fireEvent("onclick");
}
