function btn_ms(pic,txtStatus,sourceSub) {		
	if(txtStatus)
		window.status=txtStatus;
	pic.src = pic.src.replace(/_off/,"_ms");
}

function btn_off(pic) {
	window.status="buttonover2";
	pic.src = pic.src.replace(/_ms/,"_off");
	window.status="";
}


function openPicWin(pFileName,pWinName,pWidth,pHeight) {
	var isNS = (document.layers) ? true : false;
	if (isNS) pHeight = pHeight + 19;
		eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=yes,scrollbars=yes,status=yes,resizable=yes'");
		w=window.open(pFileName,pWinName,allSettings);
		w.window.focus();
}

function doSearch() {	
	myKeywords = document.forms["searchForm"].elements["q"].value;
	/*if (myKeywords.length<3 || myKeywords=='Suche') {
		alert("Bitte geben Sie einen (genaueren) Suchbegriff ein.");
		return false;
	}*/
	document.forms["searchForm"].elements["q"].value = myKeywords;	
	document.forms["searchForm"].elements['keyword'].value = document.forms["searchForm"].elements["q"].value;	
	document.forms["searchForm"].action="dyn_output.html";	
}

function resetLayer(lid)
{
	if (lid == containerId) return;

	n = document.getElementById("movebelowlayer"+lid);
	bd = document.body;
	n = n.parentNode.removeChild(n);
	bd.appendChild(n);
}

function openPicWinCm(pFileName,pWinName,pWidth,pHeight,posWindow,einfuegwin)
{
	var isNS = (document.layers) ? true : false;
	if (isNS) pHeight = pHeight + 19;

	switch(posWindow) 
	{
 		case "left":
 		xPosNewWindow=0;
 		break;

 		case "right": 		
 		xPosNewWindow=screen.width-pWidth-12;
 		break;

 		case "middle":
 		xPosNewWindow=(screen.width-pWidth)/2;
 		break;

 		default:
 		xPosNewWindow=(screen.width-pWidth)/2;
		break;
	}	

	eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=no,scrollbars=yes,status=no,resizable=yes,left='+xPosNewWindow+',top=0'");
	if (einfuegwin)
	{
		w1=window.open(pFileName,pWinName,allSettings);
		w1.window.focus();
	}
	else
	{
		w=window.open(pFileName,pWinName,allSettings);
		w.window.focus();
	}
}

function openPicWin(pFileName,pWinName,pWidth,pHeight)
{
	var isNS = (document.layers) ? true : false;
	if (isNS) pHeight = pHeight + 19;
		eval("allSettings = 'width="+pWidth+",height="+pHeight+",menubar=yes,scrollbars=yes,status=yes,resizable=yes'");
		w=window.open(pFileName,pWinName,allSettings);
		w.window.focus();
}

