	function callServer(searchtype)
	{
		var xmlhttp = false;
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xmlhttp = false;
			}
		}

		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			xmlhttp = new XMLHttpRequest();
		}
		
		
		searchtext = document.getElementById(searchtype).value;
		
		if( searchtext.length > 2 ) 
		{
		
			var obj = document.getElementById('vorschlag');
			xmlhttp.open("GET", "callserver.asp?searchtype=" + searchtype + "&searchtext="+  searchtext);
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					obj.innerHTML = xmlhttp.responseText;
				}
			}
		
			xmlhttp.send(null);
		}
	}

	function menuIn(id)
	{
		var xmlhttp = false;
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xmlhttp = false;
			}
		}

		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			xmlhttp = new XMLHttpRequest();
		}
		
		
		
			var obj = document.getElementById('popupmenu');
			xmlhttp.open("GET", "callserver.asp?id=" + id);
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					obj.style.visibility='visible';
					obj.innerHTML = xmlhttp.responseText;
				}
			}
		
			xmlhttp.send(null);
	}

	function menuOut(id)
	{
	}


	function CookieCheck()
	{
		var xmlhttp = false;
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xmlhttp = false;
			}
		}

		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			xmlhttp = new XMLHttpRequest();
		}
		
		
		
			var obj = document.getElementById('cookiecheck');
			xmlhttp.open("GET", "cookiecheck.asp");
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					obj.innerHTML = xmlhttp.responseText;
				}
			}
		
			xmlhttp.send(null);
	}


function back() 
{
   history.go(-1);      
}

function newWindow(url, windowtitle)
{
	msgWindow=window.open(url, windowtitle, "toolbar=no, width=300, height=400, directories=no, status=no, resizable=no, menubar=no, dependent=yes")
}

function slideShow( itemnr )
{
	window.open("detail.slideshow.asp?itemnr=" + itemnr,"slideshow","width=800,height=650,scrollbars=no,toolbar=no");
}





	function hidePopupMenu()
	{
		document.getElementById('popupmenu1').style.visibility='hidden';
		document.getElementById('popupmenu2').style.visibility='hidden';
		document.getElementById('popupmenu3').style.visibility='hidden';
		document.getElementById('popupmenu4').style.visibility='hidden';
		document.getElementById('popupmenu5').style.visibility='hidden';
		document.getElementById('popupmenu6').style.visibility='hidden';
	}

	function showPopupMenu( id )
	{
		hidePopupMenu();
		document.getElementById('popupmenu' + id).style.visibility='visible';
	}

