function open_window_galerie(url){ // zum Fenster öffnen
	if (screen.width == "800"){fensterhoehe = 570;scroller=1;}
	else {fensterhoehe = 700;scroller=0;}
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroller + ',resizable=0,width=650,height=' + fensterhoehe);
}
function open_window(url,weite,hoehe){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+ weite + ',height=' + hoehe);
}
function open_window_zoom(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=480,height=350');
}
function open_window_zoomprodukte(url){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=500,height=400');
}
function open_druck(url,weite,hoehe){ // zum Fenster öffnen
	win2 = window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + weite + ',height=' + hoehe);
}

var UseFlash = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
// Check for Flash version 5 or greater in Netscape
	var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=5)
		UseFlash = 1;
}
else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
		navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
		UseFlash = 1;
}
			
function wechsel(nummer){
	if (nummer == 0){document.karte.src = "images/detail_karte.gif";}
	if (nummer == 1){document.karte.src = "images/karte.gif";}
	if (nummer == 2){document.karte2.src = "images/detail_karte_see.gif";}
	if (nummer == 3){document.karte2.src = "images/karte_see.gif";}
}
function checkform()
	{
	var theForm=eval("document.register");
	var strAlert="";
// name:
	if (strAlert=="" && (typeof theForm.name.value == "undefined" || theForm.name.value =="" || theForm.name.length<1))
		strAlert="name";
// Telefon:
	if (strAlert=="" && (typeof theForm.telefon.value == "undefined" || theForm.telefon.value =="" || theForm.telefon.length<3))
		strAlert="telefon";		
// Anliegen:
	if (strAlert=="" && (typeof theForm.anliegen.value == "undefined" || theForm.anliegen.value =="" || theForm.anliegen.length<2))
		strAlert="anliegen";
// info:
	if (strAlert=="" && (typeof theForm.info.value == "undefined" || theForm.info.value =="" || theForm.info.length<1))
		strAlert="info";
	// Jetzt Fehlerausgabe:
	if (strAlert != "")
		{
		switch (strAlert)
			{			
			case "name":
				alert("Bitte geben Sie Ihren Namen ein!");
				theForm.name.focus();
				break;
			case "telefon":
				alert("Bitte geben Sie eine Telefonnummer an!"); 				
				theForm.telefon.focus();
				break;	
			case "anliegen":
				alert("Bitte geben Sie Ihr Anliegen ein!");
				theForm.anliegen.focus();
				break;				
			case "info":
				alert("Bitte geben Sie uns noch die Zusatzinfo\nwoher Sie unsere Seite kennen!");
				theForm.info.focus();
				break;
			}
		return false;
		}
	else
		return true;
	}

function checkform_weiterleitung()
	{
	var theForm=eval("document.register");
	var strAlert="";
// name:
	if (strAlert=="" && (typeof theForm.name.value == "undefined" || theForm.name.value =="" || theForm.name.length<1))
		strAlert="name";
// email:
	if (strAlert=="" && (typeof theForm.email.value == "undefined" || theForm.email.value =="" || theForm.email.length<1))
		strAlert="email";		
// empfänger-email:
	if (strAlert=="" && (typeof theForm.empfaenger_email.value == "undefined" || theForm.empfaenger_email.value =="" || theForm.empfaenger_email.length<1))
		strAlert="empfaenger_email";
	// Jetzt Fehlerausgabe:
	if (strAlert != "")
		{
		switch (strAlert)
			{			
			case "name":
				alert("Bitte geben Sie Ihren Namen ein!");
				theForm.name.focus();
				break;
			case "email":
				alert("Bitte geben Sie Ihre E-Mail Adresse an!"); 				
				theForm.telefon.focus();
				break;	
			case "empfaenger_email":
				alert("Bitte geben Sie die Empfänger E-Mail Adresse ein!");
				theForm.anliegen.focus();
				break;				
			}
		return false;
		}
	else
		return true;
	}

function checkform_demo()
	{
	var theForm=eval("document.register");
	var strAlert="";
// name:
	if (strAlert=="" && (typeof theForm.name.value == "undefined" || theForm.name.value =="" || theForm.name.length<1))
		strAlert="name";
// Telefon:
	if (strAlert=="" && (typeof theForm.telefon.value == "undefined" || theForm.telefon.value =="" || theForm.telefon.length<3))
		strAlert="telefon";		
// email:
	if (strAlert=="" && (typeof theForm.email.value == "undefined" || theForm.email.value =="" || theForm.email.length<1))
		strAlert="email";		
	// Jetzt Fehlerausgabe:
	if (strAlert != "")
		{
		switch (strAlert)
			{			
			case "name":
				alert("Bitte geben Sie Ihren Namen ein!");
				theForm.name.focus();
				break;
			case "telefon":
				alert("Bitte geben Sie eine Telefonnummer an!"); 				
				theForm.telefon.focus();
				break;	
			case "email":
				alert("Bitte geben Sie Ihre E-Mail Adresse an!"); 				
				theForm.telefon.focus();
				break;	
			}
		return false;
		}
	else
		return true;
	}