
function pop(title, width, height, filename)
{
	thefile=filename;
		
	popbox=window.open(thefile,title,"toolbar=no,scrollbars=no,resizable=yes,directories=no,menubar=no,width="+width+",height="+height)
	if(popbox !=null)
	{
		if (popbox.opener==null)
		{
			popbox.opener=self;
		}
	}
}


function check_kontakt()
{
	if (document.kontakt.name.value == "")
		{
		alert("Ein Feld oder mehrere Felder sind nicht ausgefüllt");
		document.kontakt.name.focus();
		return false;
		}
	if (document.kontakt.email.value == "")
		{
		alert("Ein Feld oder mehrere Felder sind nicht ausgefüllt");
		document.kontakt.email.focus();
		return false;
		}
	if(document.kontakt.email.value.indexOf('@') == -1)
		{
		alert("Bitte geben Sie eine gültige eMail-Adresse ein!");
		document.kontakt.email.focus();
		return false;
		}
}



function load(m,lon,lat,txt,zoom) {

  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById(m));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    if (lon != "" && lat != "") {
        if (isNaN(zoom)) zoom = 13;
        map.setCenter(new GLatLng(lon,lat), zoom);
    }
    function createMarker(point, number) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
        if (txt != "") {
            marker.openInfoWindowHtml(txt);
        }
    });
            return marker;
        
    }

    if (lon != "" && lat != "") {
        var point = new GLatLng(lon,lat);
        map.addOverlay(createMarker(point, 1));
        
    }
  }
}

function start()
{
	document.getElementById('splash_screen').style.visibility = "visible";
}

function close_splash()
{
	document.getElementById('splash_screen').style.visibility = "hidden";

}