
function layerClose(layerId, divWidth) {
	if (!divWidth) {
		divWidth = '300px';
	}

	var oLayer = document.getElementById(layerId)
	oLayer.style.display = "none";
	oLayer.style.position = "absolute";
	oLayer.style.top = "100px";
	oLayer.style.left = "320px";
	oLayer.style.width = divWidth;
	oLayer.style.backgroundColor = "#fef4cd";
	oLayer.style.padding = "20px";
	oLayer.style.border = "4px solid #d8d8d8";

	var oP = document.createElement('P');
 	oP.setAttribute('style','width:' + divWidth + ';font-size:9px;text-align:right');
	oLayer.appendChild(oP);

	var oA = document.createElement('A');
 	oA.setAttribute('href','javascript:layerClose(divId);');
	oP.appendChild(oA);

	var oText = document.createTextNode('[schließen]');
	oA.appendChild(oText);
}

function layerOpen(layerId) {
	document.getElementById(layerId).style.display="block";
}
