function chgImg(name, objekt)
{
	window.document.images[name].src = objekt.src;
}


function setActionAndSend(wert)
{
	formular.action = wert;
	formular.submit();
}

function keineFunktion()
{
	alert("Keine Funktion!");
}

function showBild(bild) 
{
	var bilderWindow = window.open("","bilder","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,dependent=1, width=700,height=600");
	with(bilderWindow.document)
	{
	open("text/html");
    writeln('<html><head><title></title><body bgcolor="#C5C7C9" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	writeln('<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">');
	writeln('<tr><td align="center" valign="middle">');
	writeln('<table cellspacing="0" cellpadding="5" border="0"><tr><td bgcolor="#ffffff">');
	writeln('<img src="bilder/' +bild+ '" border=0>');
	writeln("</td></tr></table></td></tr></table>");
    writeln("</body></html>");
	close();
	}
	bilderWindow.focus()
}

function druckansicht() 
{
	var druckWindow = window.open("","druck","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,dependent=1,width=990");
	druckWindow.focus();
}

function popupWindow()
{
	var popupWindow = window.open("","popup","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,dependent=1");
	popupWindow.focus();
}

function parseSearchQuery(theForm, message) {
	var queryValue = theForm.elements["query2"].value;
	var testValue = queryValue.replace(/ /g, "");
	if (testValue.length < 3) {
		alert(message);
		return (false);
	}
	theForm.elements["query"].value = queryValue;
	return (true);
}