window.defaultstatus = 'Fahrgastschifffahrt auf der Mecklenburgischen Seenplatte';

function werbung()
{
//var pfad = window.location.hostname;
//	pfad = 'http://' + pfad + '/mueritz/';
	
	bild = new Array(14);
	bild[0] = '<img src=\"images/schiff.jpg\" border=0 width=161 height=50>';
	bild[1] = '<img src=\"images/schiff2.jpg\" border=0 width=161 height=50>';
	bild[2] = '<img src=\"images/schiff3.jpg\" border=0 width=161 height=50>';
	bild[3] = '<img src=\"images/schiff4.jpg\" border=0 width=161 height=50>';
	bild[4] = '<img src=\"images/schiff5.jpg\" border=0 width=161 height=50>';
	bild[5] = '<img src=\"images/schiff6.jpg\" border=0 width=161 height=50>';
	bild[6] = '<img src=\"images/schiff7.jpg\" border=0 width=161 height=50>';
	bild[7] = '<img src=\"images/schiff8.jpg\" border=0 width=161 height=50>';
	bild[8] = '<img src=\"images/schiff9.jpg\" border=0 width=161 height=50>';
	bild[9] = '<img src=\"images/schiff10.jpg\" border=0 width=161 height=50>';
	bild[10] = '<img src=\"images/schiff11.jpg\" border=0 width=161 height=50>';
	bild[11] = '<img src=\"images/schiff12.jpg\" border=0 width=161 height=50>';
	bild[12] = '<img src=\"images/schiff13.jpg\" border=0 width=161 height=50>';
	bild[13] = '<img src=\"images/schiff14.jpg\" border=0 width=161 height=50>';

	var x = Math.floor(Math.random() * 14);
	if(x>13) var x = 0;	
	document.write(bild[x]);
}

function abschluss(){
	var jetzt = new Date();
	var jahr = jetzt.getYear();
	if (jahr < 2000) jahr = jahr + 1900;
	
	//var pfad = window.location.hostname;
	//pfad = 'http://' + pfad + '/fahr';

	document.write('<TABLE align=center border=0 bgcolor=white cellPadding=1 cellSpacing=0 width=100%><TR>');
	document.write('<TD class=\"impressum\" align=\"center\">&copy;&nbsp;<a class=\"impressum\" href=\"impressum.php\">fahrgastschifffahrt-mecklenburgische-seenplatte.de</a>&nbsp;');
	document.write('&nbsp;|&nbsp;<a class=\"impressum\" href=\"impressum.php\">Impressum</a>&nbsp;|&nbsp;<a class=\"impressum\" href=\"index.php\">home</a>&nbsp;|&nbsp;<a class=\"impressum\" href=\"mailto:info@fahrgastschifffahrt-mecklenburgische-seenplatte.de\">e-mail</a></td>');
	document.write('<TD width=\"5%\" valign=top align=right><a class=\"impressum\" href=\"#top\"><img src=\"images/oben.gif\" border=0 vspace=3 hspace=3 alt=\"Seitenanfang\"></a></TD>');
	document.write('</TR></TABLE>');			
}

// Öffnet Remote Fenster für Ortssuche

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

// Ruft Ortsseite im Hauptframe auf

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


function open_window(url){
	win2 = window.open(url,"Karte",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=640,height=520');
}
function open_window2(url){
	win2 = window.open(url,"Karte",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=750,height=650');
}

// Aktiviert die Bilder
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

// Deaktiviert die Bilder
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}

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.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;
	}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
