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');
}

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 flasher(){
	if ( UseFlash ) {
	// Use Flash player  // hier bitte farben etc noch anpassen
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
		document.write(' ID=std_header WIDTH=680 HEIGHT=189>');
		document.write('<PARAM NAME=movie VALUE="http://www.henning-wolter.de/header.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#ffffff>');
		document.write('<EMBED src="http://www.henning-wolter.de/header.swf" quality=high bgcolor=#ffffff ');
		document.write(' swLiveConnect=FALSE WIDTH=680 HEIGHT=189');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) {
		// Netscape 2 will display the IMG tag below so don't write an extra one
		document.write('<IMG alt="Henning Wolter INTERNET.SERVICE" SRC="http://www.henning-wolter.de/images/logo.gif" HEIGHT=189 BORDER=0 usemap="#Map2">');
	}
}
		
function checkform()
	{
	var theForm=eval("document.kontakt");
	// Ruecksetzen der BorderColor
	theForm.name.style.borderColor		='#96B1E5';
	theForm.telefon.style.borderColor	='#96B1E5';
	theForm.anliegen.style.borderColor	='#96B1E5';
	theForm.info.style.borderColor		='#96B1E5';
	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.style.borderColor='#B61A28';
				theForm.name.focus();
				break;
			case "telefon":
				alert("Bitte geben Sie eine Telefonnummer an!"); 				
				theForm.telefon.style.borderColor='#B61A28';
				theForm.telefon.focus();
				break;	
			case "anliegen":
				alert("Bitte geben Sie Ihr Anliegen ein!");
				theForm.anliegen.style.borderColor='#B61A28';
				theForm.anliegen.focus();
				break;				
			case "info":
				alert("Bitte geben Sie uns noch die Zusatzinfo\nwoher Sie meine Seite kennen!");
				theForm.info.style.borderColor='#B61A28';
				theForm.info.focus();
				break;
			}
		return false;
		}
	else
		return true;
	}
