function werbung()
{
//var pfad = window.location.hostname;
//	pfad = 'http://' + pfad + '/mueritz/';
	
	bild = new Array(6);
	bild[0] = '<img src=\"images/schiff01.jpg\" border=0 width=183 height=47>';
	bild[1] = '<img src=\"images/schiff02.jpg\" border=0 width=183 height=47>';
	bild[2] = '<img src=\"images/schiff03.jpg\" border=0 width=183 height=47>';
	bild[3] = '<img src=\"images/schiff04.jpg\" border=0 width=183 height=47>';
	bild[4] = '<img src=\"images/schiff05.jpg\" border=0 width=183 height=47>';
	bild[5] = '<img src=\"images/schiff06.jpg\" border=0 width=183 height=47>';

	var x = Math.floor(Math.random() * 6);
		
	document.write(bild[x]);
}

// Öffnet Remote Fenster für Ortssuche

function remote(url){
win2=window.open(url,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=730,height=560")
win2.creator=self
}

// Ruft Ortsseite im Hauptframe auf

function remote2(url){
window.opener.location=url
}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


function testformular() {
		fehler = false;
		if (document.anfrage.Vorname.value == "")
			error(document.anfrage.Vorname,"Ihren Vornamen")
		if (document.anfrage.Nachname.value == "")
			error(document.anfrage.Nachname,"Ihren Nachnamen")
		if (document.anfrage.Strasse.value == "")
			error(document.anfrage.Strasse,"die Straße")
		if (document.anfrage.PLZ.value == "" || document.anfrage.Wohnort.value == "" )
			error(document.anfrage.PLZ,"eine PLZ und einen Ort")
		if (document.anfrage.Email.value != "" && ((document.anfrage.Email.value.indexOf ('@') == -1) || (document.anfrage.Email.value.indexOf ('.') == -1)))
			error(document.anfrage.Email,"eine gültige eMail-Adresse")
		if (document.anfrage.Bemerkungen.value.length > 255)
			error(document.anfrage.Bemerkungen,"max. 255 Zeichen")
		return !fehler;
	}
function error(element, text) {
	if (fehler) return;
	window.alert("Bitte "+text+" eintragen!");
	element.focus();
	fehler = true;
	}
