function show_picture(id) {
	layer(600);
	
	var lc = document.getElementById("lcontent");
	
	//erstellen eines divs zum einfuegen der Rueckgabe
	var container = document.createElement("div");
	container.setAttribute("id", "layercontainer");
	container.className = "layercontainer";
	
	var ajaxload = document.createElement("div");
	ajaxload.setAttribute("id", "ajaxload");
	
	container.appendChild(ajaxload);
	lc.appendChild(container);
	
	var xmlhttp = new ajaxRequest("response/get_picture.php?id=" + id);
	xmlhttp.wState = function() {
		if (xmlhttp.req.readyState==4) {
			//divcontainer		
			//window.alert(xmlhttp.req.responseText);
			container.innerHTML = xmlhttp.req.responseText;
		}
	}
	xmlhttp.doRequest();
}

function change_picture(id) {
	var container = document.getElementById("layercontainer");
	container.innerHTML = "";
	
	var ajaxload = document.createElement("div");
	ajaxload.setAttribute("id", "ajaxload");
	
	container.appendChild(ajaxload);
	
	var xmlhttp = new ajaxRequest("response/get_picture.php?id=" + id);
	xmlhttp.wState = function() {
		if (xmlhttp.req.readyState==4) {
			//divcontainer		
			//window.alert(xmlhttp.req.responseText);
			container.innerHTML = xmlhttp.req.responseText;
		}
	}
	xmlhttp.doRequest();
}

function show_press(id) {
	layer(600);
	
	var lc = document.getElementById("lcontent");
	
	//erstellen eines divs zum einfuegen der Rueckgabe
	var container = document.createElement("div");
	container.setAttribute("id", "layercontainer");
	container.className = "layercontainer";
	
	var ajaxload = document.createElement("div");
	ajaxload.setAttribute("id", "ajaxload");
	
	container.appendChild(ajaxload);
	lc.appendChild(container);
	
	var xmlhttp = new ajaxRequest("response/get_press.php?id=" + id);
	xmlhttp.wState = function() {
		if (xmlhttp.req.readyState==4) {
			//divcontainer		
			//window.alert(xmlhttp.req.responseText);
			container.innerHTML = xmlhttp.req.responseText;
		}
	}
	xmlhttp.doRequest();
}

function change_press(id) {
	var container = document.getElementById("layercontainer");
	container.innerHTML = "";
	
	var ajaxload = document.createElement("div");
	ajaxload.setAttribute("id", "ajaxload");
	
	container.appendChild(ajaxload);
	
	var xmlhttp = new ajaxRequest("response/get_press.php?id=" + id);
	xmlhttp.wState = function() {
		if (xmlhttp.req.readyState==4) {
			//divcontainer		
			//window.alert(xmlhttp.req.responseText);
			container.innerHTML = xmlhttp.req.responseText;
		}
	}
	xmlhttp.doRequest();
}

function reload_security() {
	document.getElementById("reload").value="yes";
	document.guestbook.submit();

}