function werbungladen () 
{
	document.getElementById("kopfwerbung").innerHTML="<iframe src=\"/kopfwerbung.html?1204543584\" width=\"728\" height=\"90\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowtransparency=\"true\"><\/iframe>";
	document.getElementById("werbungrechts").innerHTML="<iframe src=\"/werbungrechts.html?1204543584\" width=\"160\" height=\"600\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowtransparency=\"true\"><\/iframe>";
	
	if(document.getElementById("werbungunten"))
		document.getElementById("werbungunten").innerHTML="<iframe src=\"/werbungunten.html?1204543584\" width=\"730\" height=\"90\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowtransparency=\"true\"><\/iframe>";
}	

function formreset()
{
	document.suche.company.value = 'Name';
	document.suche.pCode.value = 'PLZ';
	document.suche.city.value = 'Ort';
	document.suche.info.value = 'Schlagwort';
	document.suche.volltext.value = 'Volltext';
}

function dublettenloeschung(name, id)
{
	antwort=confirm('Wollen Sie den Datensatz '+name+' wirklich löschen?');
	if (antwort)
		self.location.href="dublettenloeschung.php?id1="+id;
}

/* Javascript für das Adminmenue in IE */
if(window.navigator.systemLanguage && !window.navigator.language) 
{
	function hoverIE() 
	{
		var LI = document.getElementById("Navigation").firstChild;
		
		do 
		{
			if (sucheUL(LI.firstChild)) 
			{
				LI.onmouseover=einblenden; 
				LI.onmouseout=ausblenden;
			}
			LI = LI.nextSibling;
		}
		while(LI);
	}
	
	function sucheUL(UL) 
	{
		do 
		{
			if(UL) UL = UL.nextSibling;
			if(UL && UL.nodeName == "UL") return UL;
		}
		while(UL);
		
		return false;
	}
	
	function einblenden() 
	{
		var UL = sucheUL(this.firstChild);
		UL.style.display = "block"; 
	}
	
	function ausblenden() 
	{
		sucheUL(this.firstChild).style.display = "none";
	}
	
	window.onload=hoverIE;
}

function maps_init(div, lat, lng)
{
	//Erstellt eine neue Instanz der Klasse GMap2, die die eigentliche Karte darstellt
	var map = new GMap2(document.getElementById(div));
	
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl()); 
	
	var position = new GLatLng(lat, lng);
	map.setCenter(position, 15);
	
	
	var marker = new GMarker(new GPoint(lat,lng));
	GEvent.addListener(marker, "click", function(){});
	
	//Anzeigen der Karte
	map.addOverlay(new GMarker(position));
}

function loadLoginMaske(id)
{
	document.getElementsByTagName('body')[0].scroll = 'no';
	document.getElementsByTagName('body')[0].style.overflow = 'hidden';
	document.getElementById(id).style.display = 'block';
	document.getElementById(id+'Login').style.display = 'block';
}

function destructLoginMaske(id)
{
	document.getElementsByTagName('body')[0].scroll = 'auto';
	document.getElementsByTagName('body')[0].style.overflow = 'auto';
	document.getElementById(id).style.display = 'none';
	document.getElementById(id+'Login').style.display = 'none';
}